public function buildCommands()
    {
        $result = [];
        $pluginsCollection = $this->pluginManager->getPluginCollection();

        foreach ($pluginsCollection as $plugin) {
            if ($this->isValidCommandPlugin($plugin) === true) {
                $result[] = $this->buildCommand($plugin);
            }
        }

        return $result;
    }
public function buildCommands()
    {
        $result = [];
        $pluginsCollection = $this->pluginManager->getPluginCollection();

        foreach ($pluginsCollection as $plugin) {
            if ($this->isValidCommandPlugin($plugin) === true) {
                $result[] = $this->buildCommand($plugin);
            }
        }

        return $result;
    }
public function buildCommands ( ) { $ result = [ ] ; $ pluginsCollection = $ this -> pluginManager -> getPluginCollection ( ) ; foreach ( $ pluginsCollection as $ plugin ) { if ( $ this -> isValidCommandPlugin ( $ plugin ) === true ) { $ result [ ] = $ this -> buildCommand ( $ plugin ) ; } } return $ result ; }
Gets a list of Symfony Console command.

@return Symfony\Component\Console\Command\Command[] Symfony Console commands
Gets a list of Symfony Console command .