public function onConsoleCommandLoaded(ConsoleEvent $event)
    {
        $command = $event->getCommand();
        $command->getApplication()->getContainer()['monolog']->addInfo(
            sprintf(
                'Command \'%s\' Loaded as \'%s\'', get_class($command),
                $command->getName()
            )
        );
    }
public function onConsoleCommandLoaded(ConsoleEvent $event)
    {
        $command = $event->getCommand();
        $command->getApplication()->getContainer()['monolog']->addInfo(
            sprintf(
                'Command \'%s\' Loaded as \'%s\'', get_class($command),
                $command->getName()
            )
        );
    }
public function onConsoleCommandLoaded ( ConsoleEvent $ event ) { $ command = $ event -> getCommand ( ) ; $ command -> getApplication ( ) -> getContainer ( ) [ 'monolog' ] -> addInfo ( sprintf ( 'Command \'%s\' Loaded as \'%s\'' , get_class ( $ command ) , $ command -> getName ( ) ) ) ; }
Fires when command is loaded into console application

@param ConsoleEvent $event ConsoleEvent instance

@return void
Fires when command is loaded into console application