public function onConsoleCommand(ConsoleCommandEvent $event)
    {
        $input = $event->getInput();
        if (!$input->hasOption($this->mockParamName)) {
            return;
        }

        $this->mock($input->getOption($this->mockParamName));
    }
public function onConsoleCommand(ConsoleCommandEvent $event)
    {
        $input = $event->getInput();
        if (!$input->hasOption($this->mockParamName)) {
            return;
        }

        $this->mock($input->getOption($this->mockParamName));
    }
public function onConsoleCommand ( ConsoleCommandEvent $ event ) { $ input = $ event -> getInput ( ) ; if ( ! $ input -> hasOption ( $ this -> mockParamName ) ) { return ; } $ this -> mock ( $ input -> getOption ( $ this -> mockParamName ) ) ; }
console command event handler
console command event handler