PHP 클래스 GrumPHP\Configuration\Compiler\PhpParserCompilerPass

상속: implements Symfony\Component\DependencyInjection\Compiler\CompilerPassInterface
파일 보기 프로젝트 열기: phpro/grumphp

공개 메소드들

메소드 설명
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