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();
    }
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();
    }
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 ( ) ; }
Load workers from configuration

@return  void
Load workers from configuration