src/Plugin.php
public function getSubscribedEvents()
    {
        $events = [];
        foreach ($this->providers as $command => $provider) {
            $events['command.' . $command] = 'handleCommand';
            $events['command.' . $command . '.help'] = 'handleCommandHelp';
        }

        return $events;
    }
public function getSubscribedEvents()
    {
        $events = [];
        foreach ($this->providers as $command => $provider) {
            $events['command.' . $command] = 'handleCommand';
            $events['command.' . $command . '.help'] = 'handleCommandHelp';
        }

        return $events;
    }
public function getSubscribedEvents ( ) { $ events = [ ] ; foreach ( $ this -> providers as $ command => $ provider ) { $ events [ 'command.' . $ command ] = 'handleCommand' ; $ events [ 'command.' . $ command . '.help' ] = 'handleCommandHelp' ; } return $ events ; }
Return an array of commands and associated methods

@return array
Return an array of commands and associated methods