__ __ __ __ _____ _ _ _____ _ _ _ | \/ | \ \ / / | __ \ (_) | | / ____| | | | | | \ / |_ __\ 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\Compiler;
use Symfony\Component\DependencyInjection\ContainerBuilder;
class RemoveBuildParametersPass implements CompilerPassInterface
{
/**
* @var array<string, mixed>
*/
private array $removedParameters = [];
/**
* @return void
*/
public function process(ContainerBuilder $container)
{
$parameterBag = $container->getParameterBag();
$this->removedParameters = [];
foreach ($parameterBag->all() as $name => $value) {
if ('.' === ($name[0] ?? '')) {
$this->removedParameters[$name] = $value;
$parameterBag->remove($name);
$container->log($this, sprintf('Removing build parameter "%s".', $name));
}
}
}
/**
* @return array<string, mixed>
*/
public function getRemovedParameters(): array
{
return $this->removedParameters;
}
}