You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I made a custom loader by extending the Loader class.
Then i run into a problem with the import() method, when I tried to import a controller with annotation type. It tried to load it with the PhpFileLoader().
I realize that the Symfony/Component/Config/Loader/Loader.php import method may need some fixing:
This PR was submitted for the master branch but it was merged into the 2.1 branch instead (closes#7987).
Discussion
----------
[Config] FIxed Loader::import()
| Q | A
| ------------- | ---
| Bug fix? | yes
| New feature? | no
| BC breaks? | no
| Deprecations? |no
| Tests pass? | yes
| Fixed tickets | fixes#7965, replaces #7983
| License | MIT
| Doc PR | -
Commits
-------
984e56a [Config] Added a test case for Loader::import().
2f69860 [Config] Fixed Loader import
I made a custom loader by extending the Loader class.
Then i run into a problem with the import() method, when I tried to import a controller with annotation type. It tried to load it with the PhpFileLoader().
I realize that the Symfony/Component/Config/Loader/Loader.php import method may need some fixing:
return $this->resolve($resource)->load($resource, $type);
into:
return $this->resolve($resource, $type)->load($resource, $type);
Until then i just override it, and now it works.
The text was updated successfully, but these errors were encountered: