/
home
/
techb158
/
immovalet.com
/
vendor
/
laravel
/
framework
/
src
/
Illuminate
/
Foundation
/
Console
/
/home/techb158/immovalet.com/vendor/laravel/framework/src/Illuminate/Foundation/Console
mkdir
upload
Name
Size
Mode
Actions
stubs/
-
0755
rm
CastMakeCommand.php
1285
0644
edit
dl
rm
ChannelMakeCommand.php
1279
0644
edit
dl
rm
ClearCompiledCommand.php
835
0644
edit
dl
rm
ClosureCommand.php
1968
0644
edit
dl
rm
ComponentMakeCommand.php
3427
0644
edit
dl
rm
ConfigCacheCommand.php
2065
0644
edit
dl
rm
ConfigClearCommand.php
1075
0644
edit
dl
rm
ConsoleMakeCommand.php
2111
0644
edit
dl
rm
DownCommand.php
3986
0644
edit
dl
rm
EnvironmentCommand.php
624
0644
edit
dl
rm
EventCacheCommand.php
1396
0644
edit
dl
rm
EventClearCommand.php
1109
0644
edit
dl
rm
EventGenerateCommand.php
1898
0644
edit
dl
rm
EventListCommand.php
2410
0644
edit
dl
rm
EventMakeCommand.php
1605
0644
edit
dl
rm
ExceptionMakeCommand.php
1953
0644
edit
dl
rm
JobMakeCommand.php
1717
0644
edit
dl
rm
Kernel.php
9593
0644
edit
dl
rm
KeyGenerateCommand.php
2826
0644
edit
dl
rm
ListenerMakeCommand.php
2594
0644
edit
dl
rm
MailMakeCommand.php
2662
0644
edit
dl
rm
ModelMakeCommand.php
5332
0644
edit
dl
rm
NotificationMakeCommand.php
3060
0644
edit
dl
rm
ObserverMakeCommand.php
3445
0644
edit
dl
rm
OptimizeClearCommand.php
751
0644
edit
dl
rm
OptimizeCommand.php
630
0644
edit
dl
rm
PackageDiscoverCommand.php
904
0644
edit
dl
rm
PolicyMakeCommand.php
4952
0644
edit
dl
rm
ProviderMakeCommand.php
959
0644
edit
dl
rm
QueuedCommand.php
848
0644
edit
dl
rm
RequestMakeCommand.php
1321
0644
edit
dl
rm
ResourceMakeCommand.php
2284
0644
edit
dl
rm
RouteCacheCommand.php
2679
0644
edit
dl
rm
RouteClearCommand.php
1056
0644
edit
dl
rm
RouteListCommand.php
7520
0644
edit
dl
rm
RuleMakeCommand.php
1090
0644
edit
dl
rm
ServeCommand.php
4654
0644
edit
dl
rm
StorageLinkCommand.php
2050
0644
edit
dl
rm
StubPublishCommand.php
4358
0644
edit
dl
rm
TestMakeCommand.php
2306
0644
edit
dl
rm
UpCommand.php
1130
0644
edit
dl
rm
VendorPublishCommand.php
7341
0644
edit
dl
rm
ViewCacheCommand.php
2044
0644
edit
dl
rm
ViewClearCommand.php
1323
0644
edit
dl
rm
Edit:
/home/techb158/immovalet.com/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php
(9593B)
<?php namespace Illuminate\Foundation\Console; use Closure; use Illuminate\Console\Application as Artisan; use Illuminate\Console\Command; use Illuminate\Console\Scheduling\Schedule; use Illuminate\Contracts\Console\Kernel as KernelContract; use Illuminate\Contracts\Debug\ExceptionHandler; use Illuminate\Contracts\Events\Dispatcher; use Illuminate\Contracts\Foundation\Application; use Illuminate\Support\Arr; use Illuminate\Support\Env; use Illuminate\Support\Str; use ReflectionClass; use Symfony\Component\Finder\Finder; use Throwable; class Kernel implements KernelContract { /** * The application implementation. * * @var \Illuminate\Contracts\Foundation\Application */ protected $app; /** * The event dispatcher implementation. * * @var \Illuminate\Contracts\Events\Dispatcher */ protected $events; /** * The Artisan application instance. * * @var \Illuminate\Console\Application|null */ protected $artisan; /** * The Artisan commands provided by the application. * * @var array */ protected $commands = []; /** * Indicates if the Closure commands have been loaded. * * @var bool */ protected $commandsLoaded = false; /** * The bootstrap classes for the application. * * @var string[] */ protected $bootstrappers = [ \Illuminate\Foundation\Bootstrap\LoadEnvironmentVariables::class, \Illuminate\Foundation\Bootstrap\LoadConfiguration::class, \Illuminate\Foundation\Bootstrap\HandleExceptions::class, \Illuminate\Foundation\Bootstrap\RegisterFacades::class, \Illuminate\Foundation\Bootstrap\SetRequestForConsole::class, \Illuminate\Foundation\Bootstrap\RegisterProviders::class, \Illuminate\Foundation\Bootstrap\BootProviders::class, ]; /** * Create a new console kernel instance. * * @param \Illuminate\Contracts\Foundation\Application $app * @param \Illuminate\Contracts\Events\Dispatcher $events * @return void */ public function __construct(Application $app, Dispatcher $events) { if (! defined('ARTISAN_BINARY')) { define('ARTISAN_BINARY', 'artisan'); } $this->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); } }
Save
cmd:
run