I'd like to make a custom annotation which is loaded like the Route annotation. I have found tutorials for annotations so that's not the problem. The problem I have is with the loading behavior.
I'd like to set for my custom annotation like this:
customannotation:
resource: "Bundle\Controller\Class"
Then I'd like to get something like the RouteCollection which I can work with. The loading of the annotations should happen when the routes get loaded or nearly the same time.
Symfony 2.7
PHP 5.6.9