PHP Класс GrumPHP\Configuration\Compiler\PhpParserCompilerPass

Наследование: implements Symfony\Component\DependencyInjection\Compiler\CompilerPassInterface
Показать файл Открыть проект

Открытые методы

Метод Описание
markServiceAsPrototype ( Definition $definition ) This method can be used to make the service shared cross-version.
process ( ContainerBuilder $container ) Sets the visitors as non shared services.

Описание методов

markServiceAsPrototype() публичный Метод

From Symfony 2.8 the setShared method was available. The 2.7 version is the LTS, so we still need to support it.
public markServiceAsPrototype ( Definition $definition )
$definition Symfony\Component\DependencyInjection\Definition

process() публичный Метод

This will make sure that the state of the visitor won't need to be reset after an iteration of the traverser. All visitor Ids are registered in the traverser configurator. The configurator will be used to apply the configured visitors to the traverser.
public process ( ContainerBuilder $container )
$container Symfony\Component\DependencyInjection\ContainerBuilder