Skip to content

Latest commit

 

History

History
17 lines (14 loc) · 692 Bytes

commandsValidator.md

File metadata and controls

17 lines (14 loc) · 692 Bytes

Commands validator

The Commands validator is a Service which determines which Commands should be executable. By default all Commands which implements the "Elements\Bundle\ProcessManagerBundle\ExecutionTrait" will be available.

You can change or alter the behaviour by changing the Service. If you want that all commands are available, change the $strategy to "all". Then no validation is done.

    Elements\Bundle\ProcessManagerBundle\Service\CommandsValidator:
        public: true
        arguments:
            $strategy: "default"
            $whiteList: ["router:match","valid:command"]
            $blackList: ["process-manager:maintenance","do-no-execute:command"]