DunglasActionBundle icon indicating copy to clipboard operation
DunglasActionBundle copied to clipboard

Problem with Symfony 3.3-dev and magic __set_state method

Open tommy-muehle opened this issue 8 years ago • 2 comments

@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

tommy-muehle avatar Jan 19 '17 10:01 tommy-muehle

Hi @tommy-muehle,

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

dunglas avatar Apr 03 '17 21:04 dunglas

Hi @dunglas,

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

tommy-muehle avatar Apr 06 '17 05:04 tommy-muehle