Artisan.php 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839
  1. <?php
  2. namespace Illuminate\Support\Facades;
  3. use Illuminate\Contracts\Console\Kernel as ConsoleKernelContract;
  4. /**
  5. * @method static int handle(\Symfony\Component\Console\Input\InputInterface $input, \Symfony\Component\Console\Output\OutputInterface|null $output = null)
  6. * @method static void terminate(\Symfony\Component\Console\Input\InputInterface $input, int $status)
  7. * @method static void whenCommandLifecycleIsLongerThan(\DateTimeInterface|\Carbon\CarbonInterval|float|int $threshold, callable $handler)
  8. * @method static \Illuminate\Support\Carbon|null commandStartedAt()
  9. * @method static \Illuminate\Console\Scheduling\Schedule resolveConsoleSchedule()
  10. * @method static \Illuminate\Foundation\Console\ClosureCommand command(string $signature, \Closure $callback)
  11. * @method static void registerCommand(\Symfony\Component\Console\Command\Command $command)
  12. * @method static int call(\Symfony\Component\Console\Command\Command|string $command, array $parameters = [], \Symfony\Component\Console\Output\OutputInterface|null $outputBuffer = null)
  13. * @method static \Illuminate\Foundation\Bus\PendingDispatch queue(string $command, array $parameters = [])
  14. * @method static array all()
  15. * @method static string output()
  16. * @method static void bootstrap()
  17. * @method static void bootstrapWithoutBootingProviders()
  18. * @method static void setArtisan(\Illuminate\Console\Application|null $artisan)
  19. * @method static \Illuminate\Foundation\Console\Kernel addCommands(array $commands)
  20. * @method static \Illuminate\Foundation\Console\Kernel addCommandPaths(array $paths)
  21. * @method static \Illuminate\Foundation\Console\Kernel addCommandRoutePaths(array $paths)
  22. *
  23. * @see \Illuminate\Foundation\Console\Kernel
  24. */
  25. class Artisan extends Facade
  26. {
  27. /**
  28. * Get the registered name of the component.
  29. *
  30. * @return string
  31. */
  32. protected static function getFacadeAccessor()
  33. {
  34. return ConsoleKernelContract::class;
  35. }
  36. }