original_string: public function load()
      {
          $this->outputTitle('Loading predefined workers');
          $debug = $this->debug;
  
          if (!isset($this->runtime['Queues']) || empty($this->runtime['Queues'])) {
              $this->output->outputLine("You have no configured workers to load.\n", 'failure');
          } else {
              $this->output->outputLine(sprintf('Loading %s workers', count($this->runtime['Queues'])));
  
              $config = $this->config;
  
              foreach ($this->runtime['Queues'] as $queue) {
                  $queue['config'] = $config;
                  $queue['debug'] = $debug;
                  $this->loadSettings('load', $queue);
                  $this->start($this->runtime);
              }
          }
  
          if ($this->runtime['Scheduler']['enabled'] === true) {
              $this->startscheduler(array('debug' => $debug));
          }
  
          $this->output->outputLine();
      }
code: public function load()
      {
          $this->outputTitle('Loading predefined workers');
          $debug = $this->debug;
  
          if (!isset($this->runtime['Queues']) || empty($this->runtime['Queues'])) {
              $this->output->outputLine("You have no configured workers to load.\n", 'failure');
          } else {
              $this->output->outputLine(sprintf('Loading %s workers', count($this->runtime['Queues'])));
  
              $config = $this->config;
  
              foreach ($this->runtime['Queues'] as $queue) {
                  $queue['config'] = $config;
                  $queue['debug'] = $debug;
                  $this->loadSettings('load', $queue);
                  $this->start($this->runtime);
              }
          }
  
          if ($this->runtime['Scheduler']['enabled'] === true) {
              $this->startscheduler(array('debug' => $debug));
          }
  
          $this->output->outputLine();
      }
code_tokens: public function load ( ) { $ this -> outputTitle ( 'Loading predefined workers' ) ; $ debug = $ this -> debug ; if ( ! isset ( $ this -> runtime [ 'Queues' ] ) || empty ( $ this -> runtime [ 'Queues' ] ) ) { $ this -> output -> outputLine ( "You have no configured workers to load.\n" , 'failure' ) ; } else { $ this -> output -> outputLine ( sprintf ( 'Loading %s workers' , count ( $ this -> runtime [ 'Queues' ] ) ) ) ; $ config = $ this -> config ; foreach ( $ this -> runtime [ 'Queues' ] as $ queue ) { $ queue [ 'config' ] = $ config ; $ queue [ 'debug' ] = $ debug ; $ this -> loadSettings ( 'load' , $ queue ) ; $ this -> start ( $ this -> runtime ) ; } } if ( $ this -> runtime [ 'Scheduler' ] [ 'enabled' ] === true ) { $ this -> startscheduler ( array ( 'debug' => $ debug ) ) ; } $ this -> output -> outputLine ( ) ; }
docstring: Load workers from configuration
  
  @return  void
docstring_tokens: Load workers from configuration