__ __ __ __ _____ _ _ _____ _ _ _ | \/ | \ \ / / | __ \ (_) | | / ____| | | | | | \ / |_ __\ V / | |__) | __ ___ ____ _| |_ ___ | (___ | |__ ___| | | | |\/| | '__|> < | ___/ '__| \ \ / / _` | __/ _ \ \___ \| '_ \ / _ \ | | | | | | |_ / . \ | | | | | |\ V / (_| | || __/ ____) | | | | __/ | | |_| |_|_(_)_/ \_\ |_| |_| |_| \_/ \__,_|\__\___| |_____/|_| |_|\___V 2.1 if you need WebShell for Seo everyday contact me on Telegram Telegram Address : @jackleetFor_More_Tools:
<?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\DependencyInjection\Loader;
use Symfony\Component\Config\Loader\Loader;
use Symfony\Component\DependencyInjection\ContainerBuilder;
/**
* ClosureLoader loads service definitions from a PHP closure.
*
* The Closure has access to the container as its first argument.
*
* @author Fabien Potencier <fabien@symfony.com>
*/
class ClosureLoader extends Loader
{
private ContainerBuilder $container;
public function __construct(ContainerBuilder $container, ?string $env = null)
{
$this->container = $container;
parent::__construct($env);
}
public function load(mixed $resource, ?string $type = null): mixed
{
return $resource($this->container, $this->env);
}
public function supports(mixed $resource, ?string $type = null): bool
{
return $resource instanceof \Closure;
}
}
| Name | Type | Size | Permission | Actions |
|---|---|---|---|---|
| Configurator | Folder | 0755 |
|
|
| schema | Folder | 0755 |
|
|
| ClosureLoader.php | File | 1.09 KB | 0644 |
|
| DirectoryLoader.php | File | 1.26 KB | 0644 |
|
| FileLoader.php | File | 14.83 KB | 0644 |
|
| GlobFileLoader.php | File | 850 B | 0644 |
|
| IniFileLoader.php | File | 3.15 KB | 0644 |
|
| PhpFileLoader.php | File | 8.23 KB | 0644 |
|
| XmlFileLoader.php | File | 37.35 KB | 0644 |
|
| YamlFileLoader.php | File | 41.79 KB | 0644 |
|