!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/http-kernel/Bundle/   drwxrwxr-x
Free 13.23 GB of 57.97 GB (22.83%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Self remove    Logout    


Viewing file:     Bundle.php (4.21 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\Component\HttpKernel\Bundle;

use 
Symfony\Component\Console\Application;
use 
Symfony\Component\DependencyInjection\Container;
use 
Symfony\Component\DependencyInjection\ContainerAwareTrait;
use 
Symfony\Component\DependencyInjection\ContainerBuilder;
use 
Symfony\Component\DependencyInjection\Extension\ExtensionInterface;

/**
 * An implementation of BundleInterface that adds a few conventions for DependencyInjection extensions.
 *
 * @author Fabien Potencier <fabien@symfony.com>
 */
abstract class Bundle implements BundleInterface
{
    use 
ContainerAwareTrait;

    protected 
$name;
    protected 
$extension;
    protected 
$path;
    private 
string $namespace;

    
/**
     * {@inheritdoc}
     */
    
public function boot()
    {
    }

    
/**
     * {@inheritdoc}
     */
    
public function shutdown()
    {
    }

    
/**
     * {@inheritdoc}
     *
     * This method can be overridden to register compilation passes,
     * other extensions, ...
     */
    
public function build(ContainerBuilder $container)
    {
    }

    
/**
     * Returns the bundle's container extension.
     *
     * @throws \LogicException
     */
    
public function getContainerExtension(): ?ExtensionInterface
    
{
        if (
null === $this->extension) {
            
$extension $this->createContainerExtension();

            if (
null !== $extension) {
                if (!
$extension instanceof ExtensionInterface) {
                    throw new 
\LogicException(sprintf('Extension "%s" must implement Symfony\Component\DependencyInjection\Extension\ExtensionInterface.'get_debug_type($extension)));
                }

                
// check naming convention
                
$basename preg_replace('/Bundle$/'''$this->getName());
                
$expectedAlias Container::underscore($basename);

                if (
$expectedAlias != $extension->getAlias()) {
                    throw new 
\LogicException(sprintf('Users will expect the alias of the default extension of a bundle to be the underscored version of the bundle name ("%s"). You can override "Bundle::getContainerExtension()" if you want to use "%s" or another alias.'$expectedAlias$extension->getAlias()));
                }

                
$this->extension $extension;
            } else {
                
$this->extension false;
            }
        }

        return 
$this->extension ?: null;
    }

    
/**
     * {@inheritdoc}
     */
    
public function getNamespace(): string
    
{
        if (!isset(
$this->namespace)) {
            
$this->parseClassName();
        }

        return 
$this->namespace;
    }

    
/**
     * {@inheritdoc}
     */
    
public function getPath(): string
    
{
        if (
null === $this->path) {
            
$reflected = new \ReflectionObject($this);
            
$this->path \dirname($reflected->getFileName());
        }

        return 
$this->path;
    }

    
/**
     * Returns the bundle name (the class short name).
     */
    
final public function getName(): string
    
{
        if (
null === $this->name) {
            
$this->parseClassName();
        }

        return 
$this->name;
    }

    public function 
registerCommands(Application $application)
    {
    }

    
/**
     * Returns the bundle's container extension class.
     */
    
protected function getContainerExtensionClass(): string
    
{
        
$basename preg_replace('/Bundle$/'''$this->getName());

        return 
$this->getNamespace().'\\DependencyInjection\\'.$basename.'Extension';
    }

    
/**
     * Creates the bundle's container extension.
     */
    
protected function createContainerExtension(): ?ExtensionInterface
    
{
        return 
class_exists($class $this->getContainerExtensionClass()) ? new $class() : null;
    }

    private function 
parseClassName()
    {
        
$pos strrpos(static::class, '\\');
        
$this->namespace false === $pos '' substr(static::class, 0$pos);
        if (
null === $this->name) {
            
$this->name false === $pos ? static::class : substr(static::class, $pos 1);
        }
    }
}

:: 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.0072 ]--