RepeatedPass

RepeatedPass

class RepeatedPass implements CompilerPassInterface

A pass that might be run repeatedly.

Methods

__construct(array $passes)
process(ContainerBuilder $container)

Process the repeatable passes that run more than once.

setRepeat()

Sets if the pass should repeat.

RepeatablePassInterface[] getPasses()

Returns the passes.

Details

__construct(array $passes)

Parameters

array $passes An array of RepeatablePassInterface objects

Exceptions

InvalidArgumentException when the passes don't implement RepeatablePassInterface

process(ContainerBuilder $container)

Process the repeatable passes that run more than once.

Parameters

ContainerBuilder $container

setRepeat()

Sets if the pass should repeat.

RepeatablePassInterface[] getPasses()

Returns the passes.

Return Value

RepeatablePassInterface[] An array of RepeatablePassInterface objects

© 2004–2017 Fabien Potencier
Licensed under the MIT License.
http://api.symfony.com/3.3/Symfony/Component/DependencyInjection/Compiler/RepeatedPass.html

在线笔记
App下载
App下载

扫描二维码

下载编程狮App

公众号
微信公众号

编程狮公众号

意见反馈
返回顶部