File manager - Edit - /home/autoph/public_html/projects/vendor/laravel/framework/src/Illuminate/Log/Context/ContextServiceProvider.php
Back
<?php namespace Illuminate\Log\Context; use Illuminate\Queue\Events\JobProcessing; use Illuminate\Queue\Queue; use Illuminate\Support\Facades\Context; use Illuminate\Support\ServiceProvider; class ContextServiceProvider extends ServiceProvider { /** * Register the service provider. * * @return void */ public function register() { $this->app->scoped(Repository::class); } /** * Boot the application services. * * @return void */ public function boot() { Queue::createPayloadUsing(function ($connection, $queue, $payload) { /** @phpstan-ignore staticMethod.notFound */ $context = Context::dehydrate(); return $context === null ? $payload : [ ...$payload, 'illuminate:log:context' => $context, ]; }); $this->app['events']->listen(function (JobProcessing $event) { /** @phpstan-ignore staticMethod.notFound */ Context::hydrate($event->job->payload()['illuminate:log:context'] ?? null); }); } }
| ver. 1.4 |
.
| PHP 8.1.32 | Generation time: 0.01 |
proxy
|
phpinfo
|
Settings