Example #1
0
 /**
  * Get the Konsole application instance.
  *
  * @return \Konsole\Konsole
  */
 protected function konsole()
 {
     if (is_null($this->konsole)) {
         return $this->konsole = (new Konsole($this->app, $this->app->version()))->resolveCommands($this->app->commands());
     }
     return $this->konsole;
 }
Example #2
0
 /**
  * Execute the console command.
  *
  * @param \Symfony\Component\Console\Input\InputInterface   $input
  * @param \Symfony\Component\Console\Output\OutputInterface $output
  *
  * @return mixed
  */
 protected function execute(InputInterface $input, OutputInterface $output)
 {
     return $this->application->call([$this, 'handle']);
 }
Example #3
0
 /**
  * Create a new Artisan console application.
  *
  * @param \Konsole\Application $application
  * @param string               $version
  */
 public function __construct(Application $application, $version)
 {
     parent::__construct($application->name(), $application->version());
     $this->application = $application;
 }