Kernel.php 1.2KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. <?php
  2. namespace Illuminate\Contracts\Console;
  3. interface Kernel
  4. {
  5. /**
  6. * Handle an incoming console command.
  7. *
  8. * @param \Symfony\Component\Console\Input\InputInterface $input
  9. * @param \Symfony\Component\Console\Output\OutputInterface|null $output
  10. * @return int
  11. */
  12. public function handle($input, $output = null);
  13. /**
  14. * Run an Artisan console command by name.
  15. *
  16. * @param string $command
  17. * @param array $parameters
  18. * @param \Symfony\Component\Console\Output\OutputInterface|null $outputBuffer
  19. * @return int
  20. */
  21. public function call($command, array $parameters = [], $outputBuffer = null);
  22. /**
  23. * Queue an Artisan console command by name.
  24. *
  25. * @param string $command
  26. * @param array $parameters
  27. * @return \Illuminate\Foundation\Bus\PendingDispatch
  28. */
  29. public function queue($command, array $parameters = []);
  30. /**
  31. * Get all of the commands registered with the console.
  32. *
  33. * @return array
  34. */
  35. public function all();
  36. /**
  37. * Get the output for the last run command.
  38. *
  39. * @return string
  40. */
  41. public function output();
  42. }