Kernel.php 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  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 $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. * @return int
  19. */
  20. public function call($command, array $parameters = []);
  21. /**
  22. * Queue an Artisan console command by name.
  23. *
  24. * @param string $command
  25. * @param array $parameters
  26. * @return \Illuminate\Foundation\Bus\PendingDispatch
  27. */
  28. public function queue($command, array $parameters = []);
  29. /**
  30. * Get all of the commands registered with the console.
  31. *
  32. * @return array
  33. */
  34. public function all();
  35. /**
  36. * Get the output for the last run command.
  37. *
  38. * @return string
  39. */
  40. public function output();
  41. }