I want to use symfony routing as standalone routing for my project, I have the following structure:
app
|--project
|----controller
|------catalog
|--------category.php
|--config
|----routes.yml
|--bootstrap
|----application.php
inside category.php I have a class named Category, that has a method named index(). The router is called from boostrap\application.php
How would can I specify the path to the category file in the routes.yml? Right now it look like below
search:
path: /search
defaults: { _controller: 'app\project\controller\catalog\category\category::index' }
indexAction()