-
-
Notifications
You must be signed in to change notification settings - Fork 9.8k
Closed
Labels
BugDXDX = Developer eXperience (anything that improves the experience of using Symfony)DX = Developer eXperience (anything that improves the experience of using Symfony)RoutingStatus: Needs Review
Description
| Q | A |
|---|---|
| Bug report? | yes |
| Feature request? | no |
| BC Break report? | no |
| RFC? | no |
| Symfony version | dev-master |
Using the glob pattern in the routing component breaks the YamlFileLoader:
e.g. given following config with routing.yml files in the directory
domain:
resource: '../src/Project/**/Infrastructure/Resources/Routing/routing.yml'
prefix: /results that https://github.com/symfony/symfony/blob/master/src/Symfony/Component/Routing/Loader/YamlFileLoader.php#L148 receives an array of RouteCollection and not a single RouteCollection, which results in a fatal error:
[Symfony\Component\Debug\Exception\FatalThrowableError]
Call to a member function addPrefix() on array
Metadata
Metadata
Assignees
Labels
BugDXDX = Developer eXperience (anything that improves the experience of using Symfony)DX = Developer eXperience (anything that improves the experience of using Symfony)RoutingStatus: Needs Review