REDROOM
PHP 8.2.31
Path:
Logout
Edit File
Size: 1.13 KB
Close
/opt/cpanel/ea-wappspector/vendor/rector/rector/vendor/symplify/easy-parallel/src/Reflection/CommandFromReflectionFactory.php
Text
Base64
<?php declare (strict_types=1); namespace RectorPrefix202411\Symplify\EasyParallel\Reflection; use ReflectionClass; use ReflectionMethod; use RectorPrefix202411\Symfony\Component\Console\Command\Command; use RectorPrefix202411\Symplify\EasyParallel\Exception\ParallelShouldNotHappenException; /** * @api */ final class CommandFromReflectionFactory { /** * @param class-string<Command> $className */ public function create(string $className) : Command { $commandReflectionClass = new ReflectionClass($className); $command = $commandReflectionClass->newInstanceWithoutConstructor(); $parentClassReflection = $commandReflectionClass->getParentClass(); if (!$parentClassReflection instanceof ReflectionClass) { throw new ParallelShouldNotHappenException(); } $parentConstructorReflectionMethod = $parentClassReflection->getConstructor(); if (!$parentConstructorReflectionMethod instanceof ReflectionMethod) { throw new ParallelShouldNotHappenException(); } $parentConstructorReflectionMethod->invoke($command); return $command; } }
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
CommandFromReflectionFactory.php
1.13 KB
lrw-r--r--
2024-11-08 13:59:10
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).