Robo\Robo::input PHP Method

input() public static method

Return the input object.
public static input ( ) : Symfony\Component\Console\Input\InputInterface
return Symfony\Component\Console\Input\InputInterface
    public static function input()
    {
        return static::service('input');
    }

Usage Example

Ejemplo n.º 1
0
 protected function registerRoboFileCommands($app)
 {
     if (!$this->loadRoboFile()) {
         $this->yell("Robo is not initialized here. Please run `robo init` to create a new RoboFile", 40, 'yellow');
         $app->addInitRoboFileCommand($this->roboFile, $this->roboClass);
         $app->run(Robo::input(), Robo::output());
         return;
     }
     $this->registerCommandClasses($app, $this->roboClass);
 }