Linux srv25.usacloudserver.us 5.14.0-570.39.1.el9_6.x86_64 #1 SMP PREEMPT_DYNAMIC Thu Sep 4 05:08:52 EDT 2025 x86_64
LiteSpeed
Server IP : 23.137.84.82 & Your IP : 216.73.216.127
Domains :
Cant Read [ /etc/named.conf ]
User : epicgamerzoneco
Terminal
Auto Root
Create File
Create Folder
Localroot Suggester
Backdoor Destroyer
Readme
/
opt /
cpguard /
app /
vendor /
twig /
twig /
src /
Util /
Delete
Unzip
Name
Size
Permission
Date
Action
CallableArgumentsExtractor.php
10.09
KB
-rw-r--r--
2025-05-08 04:26
DeprecationCollector.php
2
KB
-rw-r--r--
2024-09-27 07:26
ReflectionCallable.php
2.77
KB
-rw-r--r--
2025-05-08 04:26
TemplateDirIterator.php
644
B
-rw-r--r--
2025-05-08 04:26
Save
Rename
<?php /* * This file is part of Twig. * * (c) Fabien Potencier * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace Twig\Util; use Twig\TwigCallableInterface; /** * @author Fabien Potencier <fabien@symfony.com> * * @internal */ final class ReflectionCallable { private $reflector; private $callable; private $name; public function __construct( TwigCallableInterface $twigCallable, ) { $callable = $twigCallable->getCallable(); if (\is_string($callable) && false !== $pos = strpos($callable, '::')) { $callable = [substr($callable, 0, $pos), substr($callable, 2 + $pos)]; } if (\is_array($callable) && method_exists($callable[0], $callable[1])) { $this->reflector = $r = new \ReflectionMethod($callable[0], $callable[1]); $this->callable = $callable; $this->name = $r->class.'::'.$r->name; return; } $checkVisibility = $callable instanceof \Closure; try { $closure = \Closure::fromCallable($callable); } catch (\TypeError $e) { throw new \LogicException(\sprintf('Callback for %s "%s" is not callable in the current scope.', $twigCallable->getType(), $twigCallable->getName()), 0, $e); } $this->reflector = $r = new \ReflectionFunction($closure); if (str_contains($r->name, '{closure')) { $this->callable = $callable; $this->name = 'Closure'; return; } if ($object = $r->getClosureThis()) { $callable = [$object, $r->name]; $this->name = get_debug_type($object).'::'.$r->name; } elseif (\PHP_VERSION_ID >= 80111 && $class = $r->getClosureCalledClass()) { $callable = [$class->name, $r->name]; $this->name = $class->name.'::'.$r->name; } elseif (\PHP_VERSION_ID < 80111 && $class = $r->getClosureScopeClass()) { $callable = [\is_array($callable) ? $callable[0] : $class->name, $r->name]; $this->name = (\is_array($callable) ? $callable[0] : $class->name).'::'.$r->name; } else { $callable = $this->name = $r->name; } if ($checkVisibility && \is_array($callable) && method_exists(...$callable) && !(new \ReflectionMethod(...$callable))->isPublic()) { $callable = $r->getClosure(); } $this->callable = $callable; } public function getReflector(): \ReflectionFunctionAbstract { return $this->reflector; } /** * @return callable */ public function getCallable() { return $this->callable; } public function getName(): string { return $this->name; } }