dunglas / DunglasActionBundle

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

Support auto-registration of commands #12

Closed GuilhemN closed 8 years ago

GuilhemN commented 8 years ago

See #10

This PR contains several bc breaks and is not tested yet.

GuilhemN commented 8 years ago

This is one proposal but I'm wondering if it wouldn't be enough to use a different kind of arrays in the configuration which wouldn't introduce BC breaks and would be easier to support in the future:

dunglas_action:
    directories:
        actions:
            - Foo/Bar
        commands: 
            - FooBar

WDYT ?

Edit: see https://github.com/dunglas/DunglasActionBundle/pull/13