Kernel.php 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  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. /**
  43. * Terminate the application.
  44. *
  45. * @param \Symfony\Component\Console\Input\InputInterface $input
  46. * @param int $status
  47. * @return void
  48. */
  49. public function terminate($input, $status);
  50. }