Answer the question
In order to leave comments, you need to log in
How to initialize a Symfony router in a project?
Guys, the question is:
How can I build routing in a project using the Symfony routing component separately?
For example, there are controllers in the src/Controllers directory. It is necessary that they are loaded at a specific URI using the php8.0 attributes:
#[Route('/path', name: 'action')]
public function someAction()
{
// ...
}
Answer the question
In order to leave comments, you need to log in
You need to install a couple more packages:
symfony/config
symfony/cache
doctrine/annotations
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question