Spaces:
Runtime error
Runtime error
vibe-coding-api / symfony /framework-bundle /DependencyInjection /Compiler /ContainerBuilderDebugDumpPass.php
vibe-coding-api / symfony /framework-bundle /DependencyInjection /Compiler /ContainerBuilderDebugDumpPass.php
Download symfony/framework-bundle/DependencyInjection/Compiler/ContainerBuilderDebugDumpPass.php from Alcazard/vibe-coding-api: direct link, hf CLI and curl.
- Browser
- Download file 1.29 kB
-
https://huggingface.co/spaces/Alcazard/vibe-coding-api/resolve/main/symfony/framework-bundle/DependencyInjection/Compiler/ContainerBuilderDebugDumpPass.php
- Command line
-
hf download hf://spaces/Alcazard/vibe-coding-api/symfony/framework-bundle/DependencyInjection/Compiler/ContainerBuilderDebugDumpPass.php
-
curl -L -o ContainerBuilderDebugDumpPass.php https://huggingface.co/spaces/Alcazard/vibe-coding-api/resolve/main/symfony/framework-bundle/DependencyInjection/Compiler/ContainerBuilderDebugDumpPass.php
1.29 kB
| /* | |
| * 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\Bundle\FrameworkBundle\DependencyInjection\Compiler; | |
| use Symfony\Component\Config\ConfigCache; | |
| use Symfony\Component\DependencyInjection\Compiler\CompilerPassInterface; | |
| use Symfony\Component\DependencyInjection\ContainerBuilder; | |
| use Symfony\Component\DependencyInjection\Dumper\XmlDumper; | |
| /** | |
| * Dumps the ContainerBuilder to a cache file so that it can be used by | |
| * debugging tools such as the debug:container console command. | |
| * | |
| * @author Ryan Weaver <ryan@thatsquality.com> | |
| * @author Fabien Potencier <fabien@symfony.com> | |
| */ | |
| class ContainerBuilderDebugDumpPass implements CompilerPassInterface | |
| { | |
| /** | |
| * @return void | |
| */ | |
| public function process(ContainerBuilder $container) | |
| { | |
| if (!$container->getParameter('debug.container.dump')) { | |
| return; | |
| } | |
| $cache = new ConfigCache($container->getParameter('debug.container.dump'), true); | |
| if (!$cache->isFresh()) { | |
| $cache->write((new XmlDumper($container))->dump(), $container->getResources()); | |
| } | |
| } | |
| } | |