src/DependencyInjection/Compiler/ExtensionCompilerPass.php
private function addExtension(
        array &$targets,
        string $target,
        string $extension,
        array $attributes
    ): void {
        if (!isset($targets[$target])) {
            $targets[$target] = new \SplPriorityQueue();
        }

        $priority = $attributes['priority'] ?? 0;
        $targets[$target]->insert(new Reference($extension), $priority);
    }
private function addExtension(
        array &$targets,
        string $target,
        string $extension,
        array $attributes
    ): void {
        if (!isset($targets[$target])) {
            $targets[$target] = new \SplPriorityQueue();
        }

        $priority = $attributes['priority'] ?? 0;
        $targets[$target]->insert(new Reference($extension), $priority);
    }
private function addExtension ( array & $ targets , string $ target , string $ extension , array $ attributes ) : void { if ( ! isset ( $ targets [ $ target ] ) ) { $ targets [ $ target ] = new \ SplPriorityQueue ( ) ; } $ priority = $ attributes [ 'priority' ] ?? 0 ; $ targets [ $ target ] -> insert ( new Reference ( $ extension ) , $ priority ) ; }
Add extension configuration to the targets array.
Add extension configuration to the targets array .