Kernel.php 1.5 KB

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