!C99Shell v. 2.5 [PHP 8 Update] [24.05.2025]!

Software: Apache/2.4.41 (Ubuntu). PHP/8.0.30 

uname -a: Linux apirnd 5.4.0-204-generic #224-Ubuntu SMP Thu Dec 5 13:38:28 UTC 2024 x86_64 

uid=33(www-data) gid=33(www-data) groups=33(www-data) 

Safe-mode: OFF (not secure)

/var/www/html/queuepro/vendor/symfony/service-contracts/   drwxrwxr-x
Free 13.11 GB of 57.97 GB (22.62%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Self remove    Logout    


Viewing file:     ServiceSubscriberTrait.php (2.58 KB)      -rwxrwxr-x
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php

/*
 * This file is part of the Symfony package.
 *
 * (c) Fabien Potencier <fabien@symfony.com>
 *
 * For the full copyright and license information, please view the LICENSE
 * file that was distributed with this source code.
 */

namespace Symfony\Contracts\Service;

use 
Psr\Container\ContainerInterface;
use 
Symfony\Contracts\Service\Attribute\SubscribedService;

/**
 * Implementation of ServiceSubscriberInterface that determines subscribed services from
 * method return types. Service ids are available as "ClassName::methodName".
 *
 * @author Kevin Bond <kevinbond@gmail.com>
 */
trait ServiceSubscriberTrait
{
    
/** @var ContainerInterface */
    
protected $container;

    
/**
     * {@inheritdoc}
     */
    
public static function getSubscribedServices(): array
    {
        static 
$services;

        if (
null !== $services) {
            return 
$services;
        }

        
$services \is_callable(['parent'__FUNCTION__]) ? parent::getSubscribedServices() : [];

        foreach ((new 
\ReflectionClass(self::class))->getMethods() as $method) {
            if (
self::class !== $method->getDeclaringClass()->name) {
                continue;
            }

            if (!
$attribute $method->getAttributes(SubscribedService::class)[0] ?? null) {
                continue;
            }

            if (
$method->isStatic() || $method->isAbstract() || $method->isGenerator() || $method->isInternal() || $method->getNumberOfRequiredParameters()) {
                throw new 
\LogicException(sprintf('Cannot use "%s" on method "%s::%s()" (can only be used on non-static, non-abstract methods with no parameters).'SubscribedService::class, self::class, $method->name));
            }

            if (!
$returnType $method->getReturnType()) {
                throw new 
\LogicException(sprintf('Cannot use "%s" on methods without a return type in "%s::%s()".'SubscribedService::class, $method->nameself::class));
            }

            
$serviceId $returnType instanceof \ReflectionNamedType $returnType->getName() : (string) $returnType;

            if (
$returnType->allowsNull()) {
                
$serviceId '?'.$serviceId;
            }

            
$services[$attribute->newInstance()->key ?? self::class.'::'.$method->name] = $serviceId;
        }

        return 
$services;
    }

    
/**
     * @required
     */
    
public function setContainer(ContainerInterface $container): ?ContainerInterface
    
{
        
$this->container $container;

        if (
\is_callable(['parent'__FUNCTION__])) {
            return 
parent::setContainer($container);
        }

        return 
null;
    }
}

:: Command execute ::

Enter:
 
Select:
 

:: Search ::
  - regexp 

:: Upload ::
 
[ Read-Only ]

:: Make Dir ::
 
[ Read-Only ]
:: Make File ::
 
[ Read-Only ]

:: Go Dir ::
 
:: Go File ::
 

--[ c99shell v. 2.5 [PHP 8 Update] [24.05.2025] | Generation time: 0.0053 ]--