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
When using relative route resource references, these references are resolved against the kernel root dir and not like all other config files against the file's location itself.
This is also mentioned in the ticket implementing relative route resource references: #21231 (comment)
This is especially painful because using file relative references sometimes work:
app:
resource: ../../src/Action/type: annotation
This config works for me in one project, but in another project, i had to use:
app:
resource: Action/type: annotation
And i dont know why it works in one and not the other, both use the 3.4-BETA2 and are bundle less apps with kernel at /src/Kernel.php and config file at /etc/_common/_routing.yml
The text was updated successfully, but these errors were encountered:
One idea that comes to my mind is using the same loader mechanism for routes, as for the DI container and let a bundle pass it to the route loader somehow. this would be an additional way to load routes and not a replacement. That way we can change the way the default recipe of the framework bundle loads routes for a soft migration:
"deprecate" config/routes and move them to config/packages and the current implementation of the Kernels configureRoutes (not the method itself, just the content)
let the framework bundle somehow pass the routes configuration array (loaded via DI loader) to the route loader.
When using relative route resource references, these references are resolved against the kernel root dir and not like all other config files against the file's location itself.
This is also mentioned in the ticket implementing relative route resource references: #21231 (comment)
This is especially painful because using file relative references sometimes work:
This config works for me in one project, but in another project, i had to use:
And i dont know why it works in one and not the other, both use the 3.4-BETA2 and are bundle less apps with kernel at
/src/Kernel.php
and config file at/etc/_common/_routing.yml
The text was updated successfully, but these errors were encountered: