REDROOM
PHP 8.3.31
Path:
Logout
Edit File
Size: 1.67 KB
Close
/home/getspomw/royalsquad.us/vendor/laravel/framework/src/Illuminate/Concurrency/Console/InvokeSerializedClosureCommand.php
Text
Base64
<?php namespace Illuminate\Concurrency\Console; use Illuminate\Console\Command; use Symfony\Component\Console\Attribute\AsCommand; use Throwable; #[AsCommand(name: 'invoke-serialized-closure')] class InvokeSerializedClosureCommand extends Command { /** * The console command signature. * * @var string */ protected $signature = 'invoke-serialized-closure {code? : The serialized closure}'; /** * The console command description. * * @var string */ protected $description = 'Invoke the given serialized closure'; /** * Indicates whether the command should be shown in the Artisan command list. * * @var bool */ protected $hidden = true; /** * Execute the console command. * * @return void * * @throws \RuntimeException */ public function handle() { try { $this->output->write(json_encode([ 'successful' => true, 'result' => serialize($this->laravel->call(match (true) { ! is_null($this->argument('code')) => unserialize($this->argument('code')), isset($_SERVER['LARAVEL_INVOKABLE_CLOSURE']) => unserialize($_SERVER['LARAVEL_INVOKABLE_CLOSURE']), default => fn () => null, })), ])); } catch (Throwable $e) { report($e); $this->output->write(json_encode([ 'successful' => false, 'exception' => get_class($e), 'message' => $e->getMessage(), 'file' => $e->getFile(), 'line' => $e->getLine(), ])); } } }
Save
Close
Exit & Reset
Text mode: syntax highlighting auto-detects file type.
Directory Contents
Dirs: 0 × Files: 1
Delete Selected
Select All
Select None
Sort:
Name
Size
Modified
Enable drag-to-move
Name
Size
Perms
Modified
Actions
InvokeSerializedClosureCommand.php
1.67 KB
lrw-rw-rw-
2025-09-17 06:52:59
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).