src/Console/ConsoleRunner.php
public static function run(HelperSet $helperSet)
    {
        $application = new Application('Resque Console Tool', Version::VERSION);
        $application->setCatchExceptions(true);
        $application->setHelperSet($helperSet);

        $application->add(new QueueListCommand());
        $application->add(new QueueClearCommand());
        $application->add(new EnqueueCommand());
        $application->add(new WorkerCommand());

        return $application->run();
    }
public static function run(HelperSet $helperSet)
    {
        $application = new Application('Resque Console Tool', Version::VERSION);
        $application->setCatchExceptions(true);
        $application->setHelperSet($helperSet);

        $application->add(new QueueListCommand());
        $application->add(new QueueClearCommand());
        $application->add(new EnqueueCommand());
        $application->add(new WorkerCommand());

        return $application->run();
    }
public static function run ( HelperSet $ helperSet ) { $ application = new Application ( 'Resque Console Tool' , Version :: VERSION ) ; $ application -> setCatchExceptions ( true ) ; $ application -> setHelperSet ( $ helperSet ) ; $ application -> add ( new QueueListCommand ( ) ) ; $ application -> add ( new QueueClearCommand ( ) ) ; $ application -> add ( new EnqueueCommand ( ) ) ; $ application -> add ( new WorkerCommand ( ) ) ; return $ application -> run ( ) ; }
Runs the application using the given HelperSet

This method is responsible for creating the console application, adding
relevant commands, and running it. Other code is responsible for producing
the HelperSet itself (your cli-config.php or bootstrap code), and for
calling this method (the actual bin command file).

@param HelperSet $helperSet
@return integer 0 if everything went fine, or an error code
Runs the application using the given HelperSet