Dependency Injection Compiler (Compiler/Compiler.php)

symfony · src/Symfony/Component/DependencyInjection/Compiler/Compiler.php · php · MIT
dev-tools, infra, fw:symfony, tag:knn-classified, tag:dependency-injection, tag:optimization

Orchestrates compiler passes to process and optimize service container definitions, including removing circular dependencies. Reuse when building or extending dependency-injection container compilation pipelines.

// Source: https://github.com/symfony/symfony | License: MIT | Copyright 2004-present Fabien Potencier
// Provided via justclaw.it.com; keep this notice with the code.
<?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;
use Symfony\Component\DependencyInjection\Exception\EnvParameterException;

/**
 * This class is used to remove circular dependencies between individual passes.
 *
 * @author Johannes M. Schmitt <schmittjoh@gmail.com>
 */
class Compiler
{
    private PassConfig $passConfig;


... (truncated -- full source via MCP)

See the full source, get the GitHub permalink, and search for more like it.

Get a free API key