$60 GRAYBYTE WORDPRESS FILE MANAGER $58

SERVER : vnpttt-amd7f72-h1.vietnix.vn #1 SMP Fri May 24 12:42:50 UTC 2024
SERVER IP : 103.200.23.149 | ADMIN IP 216.73.216.22
OPTIONS : CRL = ON | WGT = ON | SDO = OFF | PKEX = OFF
DEACTIVATED : NONE

/opt/alt/php53/usr/share/pear/Symfony/Component/DependencyInjection/Compiler/

HOME
Current File : /opt/alt/php53/usr/share/pear/Symfony/Component/DependencyInjection/Compiler//RepeatedPass.php
<?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\InvalidArgumentException;

/**
 * A pass that might be run repeatedly.
 *
 * @author Johannes M. Schmitt <schmittjoh@gmail.com>
 */
class RepeatedPass implements CompilerPassInterface
{
    /**
     * @var Boolean
     */
    private $repeat = false;

    /**
     * @var RepeatablePassInterface[]
     */
    private $passes;

    /**
     * Constructor.
     *
     * @param RepeatablePassInterface[] $passes An array of RepeatablePassInterface objects
     *
     * @throws InvalidArgumentException when the passes don't implement RepeatablePassInterface
     */
    public function __construct(array $passes)
    {
        foreach ($passes as $pass) {
            if (!$pass instanceof RepeatablePassInterface) {
                throw new InvalidArgumentException('$passes must be an array of RepeatablePassInterface.');
            }

            $pass->setRepeatedPass($this);
        }

        $this->passes = $passes;
    }

    /**
     * Process the repeatable passes that run more than once.
     *
     * @param ContainerBuilder $container
     */
    public function process(ContainerBuilder $container)
    {
        $this->repeat = false;
        foreach ($this->passes as $pass) {
            $pass->process($container);
        }

        if ($this->repeat) {
            $this->process($container);
        }
    }

    /**
     * Sets if the pass should repeat
     */
    public function setRepeat()
    {
        $this->repeat = true;
    }

    /**
     * Returns the passes
     *
     * @return RepeatablePassInterface[] An array of RepeatablePassInterface objects
     */
    public function getPasses()
    {
        return $this->passes;
    }
}

Current_dir [ NOT WRITEABLE ] Document_root [ WRITEABLE ]


[ Back ]
NAME
SIZE
LAST TOUCH
USER
CAN-I?
FUNCTIONS
..
--
31 Aug 2024 7.05 AM
root / root
0755
AnalyzeServiceReferencesPass.php
4.406 KB
18 Dec 2019 6.20 PM
root / root
0644
CheckCircularReferencesPass.php
2.36 KB
18 Dec 2019 6.20 PM
root / root
0644
CheckDefinitionValidityPass.php
3.598 KB
18 Dec 2019 6.20 PM
root / root
0644
CheckExceptionOnInvalidReferenceBehaviorPass.php
2.053 KB
18 Dec 2019 6.20 PM
root / root
0644
CheckReferenceValidityPass.php
5.502 KB
18 Dec 2019 6.20 PM
root / root
0644
Compiler.php
2.552 KB
18 Dec 2019 6.20 PM
root / root
0644
CompilerPassInterface.php
0.729 KB
18 Dec 2019 6.20 PM
root / root
0644
InlineServiceDefinitionsPass.php
4.484 KB
18 Dec 2019 6.20 PM
root / root
0644
LoggingFormatter.php
1.434 KB
18 Dec 2019 6.20 PM
root / root
0644
MergeExtensionConfigurationPass.php
1.84 KB
18 Dec 2019 6.20 PM
root / root
0644
PassConfig.php
5.898 KB
18 Dec 2019 6.20 PM
root / root
0644
RemoveAbstractDefinitionsPass.php
1.038 KB
18 Dec 2019 6.20 PM
root / root
0644
RemovePrivateAliasesPass.php
1.237 KB
18 Dec 2019 6.20 PM
root / root
0644
RemoveUnusedDefinitionsPass.php
2.707 KB
18 Dec 2019 6.20 PM
root / root
0644
RepeatablePassInterface.php
0.675 KB
18 Dec 2019 6.20 PM
root / root
0644
RepeatedPass.php
2.034 KB
18 Dec 2019 6.20 PM
root / root
0644
ReplaceAliasByActualDefinitionPass.php
4.068 KB
18 Dec 2019 6.20 PM
root / root
0644
ResolveDefinitionTemplatesPass.php
5.42 KB
18 Dec 2019 6.20 PM
root / root
0644
ResolveInvalidReferencesPass.php
3.418 KB
18 Dec 2019 6.20 PM
root / root
0644
ResolveParameterPlaceHoldersPass.php
2.107 KB
18 Dec 2019 6.20 PM
root / root
0644
ResolveReferencesToAliasesPass.php
2.828 KB
18 Dec 2019 6.20 PM
root / root
0644
ServiceReferenceGraph.php
2.79 KB
18 Dec 2019 6.20 PM
root / root
0644
ServiceReferenceGraphEdge.php
1.481 KB
18 Dec 2019 6.20 PM
root / root
0644
ServiceReferenceGraphNode.php
2.485 KB
18 Dec 2019 6.20 PM
root / root
0644

GRAYBYTE WORDPRESS FILE MANAGER @ 2026 CONTACT ME
Static GIF