Someone asked help on Symfony Slack channel with following error
Hey guys! Do anyone know how to fix this error?
Cannot load resource "../src/Controller/". Make sure there is a loader supporting the "attribute" type.I asked that person to share composer.json file contents.
And then I just created new project with that composer.json that I got.
After that I just run composer install command and made simple IndexController.php
that uses PHP attributes with route definitions and all worked as expected.
- Just clone the repository
- Run
composer installcommand - Run
symfony servecommand - Open
http://localhost:8000url on your browser - Profit
MIT