REDROOM
PHP 8.3.31
Path:
Logout
Edit File
Size: 2.37 KB
Close
/home/getspomw/royalsquad.us/vendor/laravel/pail/src/PailServiceProvider.php
Text
Base64
<?php namespace Laravel\Pail; use Illuminate\Console\Events\CommandStarting; use Illuminate\Contracts\Foundation\Application; use Illuminate\Log\Events\MessageLogged; use Illuminate\Queue\Events\JobExceptionOccurred; use Illuminate\Queue\Events\JobProcessed; use Illuminate\Queue\Events\JobProcessing; use Illuminate\Support\ServiceProvider; use Laravel\Pail\Console\Commands\PailCommand; class PailServiceProvider extends ServiceProvider { /** * Registers the application services. */ public function register(): void { $this->app->singleton( Files::class, fn (Application $app) => new Files($app->storagePath('pail')) ); $this->app->singleton(Handler::class, fn (Application $app) => new Handler( $app, $app->make(Files::class), // @phpstan-ignore argument.type $app->runningInConsole(), )); } /** * Bootstraps the application services. */ public function boot(): void { if (! $this->runningPailTests() && ($this->app->runningUnitTests() || ($_ENV['VAPOR_SSM_PATH'] ?? false))) { return; } /** @var \Illuminate\Contracts\Events\Dispatcher $events */ $events = $this->app->make('events'); $events->listen(MessageLogged::class, function (MessageLogged $messageLogged) { /** @var Handler $handler */ $handler = $this->app->make(Handler::class); $handler->log($messageLogged); }); $events->listen([CommandStarting::class, JobProcessing::class, JobExceptionOccurred::class], function (CommandStarting|JobProcessing|JobExceptionOccurred $lifecycleEvent) { /** @var Handler $handler */ $handler = $this->app->make(Handler::class); $handler->setLastLifecycleEvent($lifecycleEvent); }); $events->listen([JobProcessed::class], function () { /** @var Handler $handler */ $handler = $this->app->make(Handler::class); $handler->setLastLifecycleEvent(null); }); if ($this->app->runningInConsole()) { $this->commands([ PailCommand::class, ]); } } /** * Determines if the Pail's test suite is running. */ protected function runningPailTests(): bool { return $_ENV['PAIL_TESTS'] ?? false; } }
Save
Close
Exit & Reset
Text mode: syntax highlighting auto-detects file type.
Directory Contents
Dirs: 5 × Files: 8
Delete Selected
Select All
Select None
Sort:
Name
Size
Modified
Enable drag-to-move
Name
Size
Perms
Modified
Actions
Console
DIR
-
drwxrwxrwx
2025-09-17 06:53:03
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
Contracts
DIR
-
drwxrwxrwx
2025-09-17 06:53:03
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
Guards
DIR
-
drwxrwxrwx
2025-09-17 06:53:03
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
Printers
DIR
-
drwxrwxrwx
2026-04-21 18:27:07
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
ValueObjects
DIR
-
drwxrwxrwx
2025-09-17 06:53:03
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
error_log
960 B
lrw-r--r--
2026-04-25 12:17:06
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
File.php
1.86 KB
lrw-rw-rw-
2025-09-17 06:53:03
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
Files.php
540 B
lrw-rw-rw-
2025-09-17 06:53:03
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
Handler.php
4.01 KB
lrw-rw-rw-
2025-09-17 06:53:03
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
LoggerFactory.php
652 B
lrw-rw-rw-
2025-09-17 06:53:03
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
Options.php
2.05 KB
lrw-rw-rw-
2025-09-17 06:53:03
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
PailServiceProvider.php
2.37 KB
lrw-rw-rw-
2025-09-17 06:53:03
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
ProcessFactory.php
1.84 KB
lrw-rw-rw-
2025-09-17 06:53:03
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
Zip Selected
If ZipArchive is unavailable, a
.tar
will be created (no compression).