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
Error: Class 'UrlGenerator' not found in /mostphotos/vendor/symfony/routing/Router.php:375
Stack trace:
#0 /mostphotos/vendor/symfony/routing/Router.php(254): Symfony\Component\Routing\Router->getGenerator()
#1 /mostphotos/public/index.php(34): Symfony\Component\Routing\Router->generate('route_name')
#2 {main}
The text was updated successfully, but these errors were encountered:
…Fayet)
This PR was merged into the 4.3 branch.
Discussion
----------
[Router] routing cache crash when using generator_class
| Q | A
| ------------- | ---
| Branch? | 4.3
| Bug fix? | yes
| New feature? | no
| BC breaks? | no
| Deprecations? | no
| Tests pass? | yes
| Fixed tickets | #31807
| License | MIT
Since #28865 the Router use, by default, new generator, matcher, and dumpers.
This leads to crash when the Router use a custom generator, or matcher based on the old ones.
Commits
-------
a5b46e5 Fix routing cache broken when using generator_class
Symfony version(s) affected: 4.3.0
Description
Setting both cache_dir and generator_class in the Router class is broken in symfony/routing 4.3.0. This worked fine in 4.2.8.
Note, only the symfony/routing component is used and not the entire symfony framework.
How to reproduce
Additional context
The text was updated successfully, but these errors were encountered: