/var/www/flurhymez/vendor/laravel/framework/src/Illuminate/Foundation/Console
NameSizeModeActions
stubs/-0755rm
CastMakeCommand.php12850644editdlrm
ChannelMakeCommand.php13000644editdlrm
ClearCompiledCommand.php8350644editdlrm
ClosureCommand.php19680644editdlrm
ComponentMakeCommand.php34590644editdlrm
ConfigCacheCommand.php20650644editdlrm
ConfigClearCommand.php10750644editdlrm
ConsoleMakeCommand.php21940644editdlrm
DownCommand.php41280644editdlrm
EnvironmentCommand.php6240644editdlrm
EventCacheCommand.php13960644editdlrm
EventClearCommand.php11090644editdlrm
EventGenerateCommand.php18980644editdlrm
EventListCommand.php24100644editdlrm
EventMakeCommand.php16050644editdlrm
ExceptionMakeCommand.php19530644editdlrm
JobMakeCommand.php18000644editdlrm
Kernel.php95930644editdlrm
KeyGenerateCommand.php28260644editdlrm
ListenerMakeCommand.php27200644editdlrm
MailMakeCommand.php34370644editdlrm
ModelMakeCommand.php62270644editdlrm
NotificationMakeCommand.php31590644editdlrm
ObserverMakeCommand.php34450644editdlrm
OptimizeClearCommand.php7870644editdlrm
OptimizeCommand.php6300644editdlrm
PackageDiscoverCommand.php9040644editdlrm
PolicyMakeCommand.php49520644editdlrm
ProviderMakeCommand.php13010644editdlrm
QueuedCommand.php8480644editdlrm
RequestMakeCommand.php13210644editdlrm
ResourceMakeCommand.php22840644editdlrm
RouteCacheCommand.php26790644editdlrm
RouteClearCommand.php10560644editdlrm
RouteListCommand.php79570644editdlrm
RuleMakeCommand.php18070644editdlrm
ServeCommand.php52150644editdlrm
StorageLinkCommand.php20500644editdlrm
StubPublishCommand.php44450644editdlrm
TestMakeCommand.php24330644editdlrm
UpCommand.php12740644editdlrm
VendorPublishCommand.php73480644editdlrm
ViewCacheCommand.php20440644editdlrm
ViewClearCommand.php13230644editdlrm
Edit: /var/www/flurhymez/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php (9593B)
app = $app; $this->events = $events; $this->app->booted(function () { $this->defineConsoleSchedule(); }); } /** * Define the application's command schedule. * * @return void */ protected function defineConsoleSchedule() { $this->app->singleton(Schedule::class, function ($app) { return tap(new Schedule($this->scheduleTimezone()), function ($schedule) { $this->schedule($schedule->useCache($this->scheduleCache())); }); }); } /** * Get the name of the cache store that should manage scheduling mutexes. * * @return string */ protected function scheduleCache() { return $this->app['config']->get('cache.schedule_store', Env::get('SCHEDULE_CACHE_DRIVER')); } /** * Run the console application. * * @param \Symfony\Component\Console\Input\InputInterface $input * @param \Symfony\Component\Console\Output\OutputInterface|null $output * @return int */ public function handle($input, $output = null) { try { $this->bootstrap(); return $this->getArtisan()->run($input, $output); } catch (Throwable $e) { $this->reportException($e); $this->renderException($output, $e); return 1; } } /** * Terminate the application. * * @param \Symfony\Component\Console\Input\InputInterface $input * @param int $status * @return void */ public function terminate($input, $status) { $this->app->terminate(); } /** * Define the application's command schedule. * * @param \Illuminate\Console\Scheduling\Schedule $schedule * @return void */ protected function schedule(Schedule $schedule) { // } /** * Get the timezone that should be used by default for scheduled events. * * @return \DateTimeZone|string|null */ protected function scheduleTimezone() { $config = $this->app['config']; return $config->get('app.schedule_timezone', $config->get('app.timezone')); } /** * Register the Closure based commands for the application. * * @return void */ protected function commands() { // } /** * Register a Closure based command with the application. * * @param string $signature * @param \Closure $callback * @return \Illuminate\Foundation\Console\ClosureCommand */ public function command($signature, Closure $callback) { $command = new ClosureCommand($signature, $callback); Artisan::starting(function ($artisan) use ($command) { $artisan->add($command); }); return $command; } /** * Register all of the commands in the given directory. * * @param array|string $paths * @return void */ protected function load($paths) { $paths = array_unique(Arr::wrap($paths)); $paths = array_filter($paths, function ($path) { return is_dir($path); }); if (empty($paths)) { return; } $namespace = $this->app->getNamespace(); foreach ((new Finder)->in($paths)->files() as $command) { $command = $namespace.str_replace( ['/', '.php'], ['\\', ''], Str::after($command->getRealPath(), realpath(app_path()).DIRECTORY_SEPARATOR) ); if (is_subclass_of($command, Command::class) && ! (new ReflectionClass($command))->isAbstract()) { Artisan::starting(function ($artisan) use ($command) { $artisan->resolve($command); }); } } } /** * Register the given command with the console application. * * @param \Symfony\Component\Console\Command\Command $command * @return void */ public function registerCommand($command) { $this->getArtisan()->add($command); } /** * Run an Artisan console command by name. * * @param string $command * @param array $parameters * @param \Symfony\Component\Console\Output\OutputInterface|null $outputBuffer * @return int * * @throws \Symfony\Component\Console\Exception\CommandNotFoundException */ public function call($command, array $parameters = [], $outputBuffer = null) { $this->bootstrap(); return $this->getArtisan()->call($command, $parameters, $outputBuffer); } /** * Queue the given console command. * * @param string $command * @param array $parameters * @return \Illuminate\Foundation\Bus\PendingDispatch */ public function queue($command, array $parameters = []) { return QueuedCommand::dispatch(func_get_args()); } /** * Get all of the commands registered with the console. * * @return array */ public function all() { $this->bootstrap(); return $this->getArtisan()->all(); } /** * Get the output for the last run command. * * @return string */ public function output() { $this->bootstrap(); return $this->getArtisan()->output(); } /** * Bootstrap the application for artisan commands. * * @return void */ public function bootstrap() { if (! $this->app->hasBeenBootstrapped()) { $this->app->bootstrapWith($this->bootstrappers()); } $this->app->loadDeferredProviders(); if (! $this->commandsLoaded) { $this->commands(); $this->commandsLoaded = true; } } /** * Get the Artisan application instance. * * @return \Illuminate\Console\Application */ protected function getArtisan() { if (is_null($this->artisan)) { return $this->artisan = (new Artisan($this->app, $this->events, $this->app->version())) ->resolveCommands($this->commands); } return $this->artisan; } /** * Set the Artisan application instance. * * @param \Illuminate\Console\Application $artisan * @return void */ public function setArtisan($artisan) { $this->artisan = $artisan; } /** * Get the bootstrap classes for the application. * * @return array */ protected function bootstrappers() { return $this->bootstrappers; } /** * Report the exception to the exception handler. * * @param \Throwable $e * @return void */ protected function reportException(Throwable $e) { $this->app[ExceptionHandler::class]->report($e); } /** * Render the given exception. * * @param \Symfony\Component\Console\Output\OutputInterface $output * @param \Throwable $e * @return void */ protected function renderException($output, Throwable $e) { $this->app[ExceptionHandler::class]->renderForConsole($output, $e); } }