dunglas / DunglasActionBundle

Symfony controllers, redesigned
https://dunglas.fr/2016/01/dunglasactionbundle-symfony-controllers-redesigned/
MIT License
256 stars 14 forks source link

Accept absolute directories #52

Closed theofidry closed 8 years ago

theofidry commented 8 years ago

Example taken from the documentation:

# app/config/config.yml

dunglas_action:
    directories:
        - '../src/*Bundle/Action'

If you change that to:

# app/config/config.yml

dunglas_action:
    directories:
        - '%kernel.root_dir%/../src/*Bundle/Action'

Then the bundle will not find the directories... IMO there is no need to force the user to use a relative path here especially considering that in Sf SE most of the paths given are absolute.

dunglas commented 8 years ago

It would be a nice improvement. Do you want to open a PR for that?

theofidry commented 8 years ago

I'll add it to my PR to do list... :P Will try to do that quickly