I use this, which includes every controller in this folder:
core: resource: "@AppCoreBundle/Controller" type: annotation
The same code applies to subfolders:
core_admin: resource: "@AppCoreBundle/Controller/Admin" type: annotation
It is perfectly normal to create subfolders inside the Controller folder to separate public and administrative controllers.
Of course, you could turn on each of them one by one, but it is very tiring.
source share