Skip to content
This repository has been archived by the owner on Nov 15, 2018. It is now read-only.

Problem with Symfony 3.3-dev and magic __set_state method #69

Open
tommy-muehle opened this issue Jan 19, 2017 · 2 comments
Open

Problem with Symfony 3.3-dev and magic __set_state method #69

tommy-muehle opened this issue Jan 19, 2017 · 2 comments

Comments

@tommy-muehle
Copy link

tommy-muehle commented Jan 19, 2017

@dunglas
Here are the issue (addressed via Slack).
I got this issue with Symfony 3.3-dev. With Symfony 3.2.2 this code works fine.

Symfony\Component\Debug\Exception\UndefinedMethodException: Attempted to call an undefined method named "__set_state" of class "AppBundle\Action\Homepage". in /Users/tommy/Projects/Sites/tmy.li/app/var/cache/configProjectContainerUrlMatcher.php on line 36

The relevant part in the matcher class looks like this:

return array (  '_controller' =>   AppBundle\Action\Homepage::__set_state(array(     'viewDirectory' => '/Users/tommy/Projects/Sites/tmy.li/app/config/../web/views',  )),  '_route' => '_',    );

Here are the source for further details:
https://github.com/tommy-muehle/tmy.li/tree/release/0.1.0/app

@dunglas
Copy link
Owner

dunglas commented Apr 3, 2017

Hi @tommy-muehle,

Can you reproduce this bug with the latest master of Symfony?

@tommy-muehle
Copy link
Author

Hi @dunglas,

yes, still the same with "latest" master (ab93fea).

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants