public function registerCommandPlugins()
    {
        $spress = $this->getSpress();

        try {
            $pm = $spress['spress.plugin.pluginManager'];

            $commandBuilder = new ConsoleCommandBuilder($pm);
            $consoleCommandFromPlugins = $commandBuilder->buildCommands();

            foreach ($consoleCommandFromPlugins as $consoleCommand) {
                $this->add($consoleCommand);
            }
        } catch (\Exception $e) {
        }
    }
public function registerCommandPlugins()
    {
        $spress = $this->getSpress();

        try {
            $pm = $spress['spress.plugin.pluginManager'];

            $commandBuilder = new ConsoleCommandBuilder($pm);
            $consoleCommandFromPlugins = $commandBuilder->buildCommands();

            foreach ($consoleCommandFromPlugins as $consoleCommand) {
                $this->add($consoleCommand);
            }
        } catch (\Exception $e) {
        }
    }
public function registerCommandPlugins ( ) { $ spress = $ this -> getSpress ( ) ; try { $ pm = $ spress [ 'spress.plugin.pluginManager' ] ; $ commandBuilder = new ConsoleCommandBuilder ( $ pm ) ; $ consoleCommandFromPlugins = $ commandBuilder -> buildCommands ( ) ; foreach ( $ consoleCommandFromPlugins as $ consoleCommand ) { $ this -> add ( $ consoleCommand ) ; } } catch ( \ Exception $ e ) { } }
Registers the command plugins present in the current directory.
Registers the command plugins present in the current directory .