original_string: 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) {
          }
      }
code: 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) {
          }
      }
code_tokens: 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 ) { } }
docstring: Registers the command plugins present in the current directory.
docstring_tokens: Registers the command plugins present in the current directory .