Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Black/White-listing some commands #20

Open
gnutix opened this issue Aug 21, 2013 · 0 comments
Open

Black/White-listing some commands #20

gnutix opened this issue Aug 21, 2013 · 0 comments
Labels

Comments

@gnutix
Copy link

gnutix commented Aug 21, 2013

I was thinking it would be a nice addition, for example when you're using this bundle to allow your client to handle simple tasks in production (custom symfony commands) but does not want to let him a chance to drop the database entirely (for example).

It could be implemented with new configuration keys like :

coresphere_console:
    filtering:
       whitelist: [ 'client-friendly-namespace:*', 'cache:clear', 'assetic:dump', 'assets:install' ]

or

coresphere_console:
    filtering:
       blacklist: [ 'doctrine:*', 'generate:*', 'config:dump-reference' ]

It would probably need to support * syntax (or it would become a mess) and handle conflicts between the two configuration (white/black). Seldaek's MonologBundle use a clean syntax for the channels selection, might be worth to get some inspiration from there.

I would be willing to take some time to implement it. What do you think ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants