marcins-code
2/13/2020 - 4:29 AM

Add subcategory to controller dir in Symfony

Add subcategory to controller dir in Symfony

    # controllers are imported separately to make sure services can be injected
    # as action arguments even if you don't extend any base controller class
    App\Controller\:
        resource: '../src/Controller'
        tags: ['controller.service_arguments']

    App\Controller\SubControler\: # assuming you have namespace like that
        resource: '../src/Controller/SubControler'
        tags: ['controller.service_arguments']