Answer the question
In order to leave comments, you need to log in
How to resolve Symfony 4 paths?
Now I was setting up routing, I had to specify the loading of routing from 'src/Resources/config/routing.yml'
Previously, you could specify the path, for example - @AppBundle/Resources/config/routing.yml
Now they have abandoned bundles, but how to write this path now I can't find it anywhere.
Bundle "App" does not exist or it is not enabled ... make sure the bundle path "@App/Resources/config/routing.yml" is not empty.
Answer the question
In order to leave comments, you need to log in
This path (more precisely, a set of paths) is specified in MicroKernelTrait::configureRoutes() . To be more precise, this trait defines a method for configuring routing, and the actual code (in its standard form) is part of the Symfony Flex recipe for symfony/framework-bundle
, you can see it in the corresponding repository .
If your project is created from symfony/skeleton and, accordingly, uses Symfony Flex, then this code is in src/Kernel.php
your project and it was added there via recipe.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question