本文整理汇总了PHP中Elcodi\Bundle\CoreBundle\Abstracts\AbstractElcodiBundle::build方法的典型用法代码示例。如果您正苦于以下问题:PHP AbstractElcodiBundle::build方法的具体用法?PHP AbstractElcodiBundle::build怎么用?PHP AbstractElcodiBundle::build使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Elcodi\Bundle\CoreBundle\Abstracts\AbstractElcodiBundle
的用法示例。
在下文中一共展示了AbstractElcodiBundle::build方法的6个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: build
/**
* @param ContainerBuilder $container
*/
public function build(ContainerBuilder $container)
{
parent::build($container);
$container->addCompilerPass(new MappingCompilerPass());
$container->addCompilerPass(new CartCouponApplicatorCompilerPass());
$container->addCompilerPass(new CartCouponApplicatorFunctionCompilerPass());
}
示例2: build
/**
* Builds bundle
*
* @param ContainerBuilder $container Container
*/
public function build(ContainerBuilder $container)
{
parent::build($container);
/**
* Adds compiler pass
*/
$container->addCompilerPass(new MappingCompilerPass())->addCompilerPass(new ContextCompilerPass())->addCompilerPass(new ExpressionLanguageCompilerPass());
}
示例3: build
/**
* @param ContainerBuilder $container
*/
public function build(ContainerBuilder $container)
{
parent::build($container);
$container->addCompilerPass(new MappingCompilerPass());
$container->addCompilerPass(new PurchasableNameResolverCompilerPass());
$container->addCompilerPass(new PurchasableStockValidatorCompilerPass());
$container->addCompilerPass(new PurchasableStockUpdaterCompilerPass());
$container->addCompilerPass(new PurchasableImageResolverCompilerPass());
}
示例4: build
/**
* @param ContainerBuilder $container
*/
public function build(ContainerBuilder $container)
{
parent::build($container);
$container->addCompilerPass(new MappingCompilerPass());
$container->addCompilerPass(new MenuFilterCompilerPass());
$container->addCompilerPass(new MenuBuilderCompilerPass());
$container->addCompilerPass(new MenuModifierCompilerPass());
$container->addCompilerPass(new MenuChangerCompilerPass());
}
示例5: build
/**
* @param ContainerBuilder $container
*/
public function build(ContainerBuilder $container)
{
parent::build($container);
$container->addCompilerPass(new MappingCompilerPass());
}
示例6: build
/**
* @param ContainerBuilder $container
*/
public function build(ContainerBuilder $container)
{
parent::build($container);
$container->addCompilerPass(new MappingCompilerPass());
$container->addExpressionLanguageProvider(new ConfigurationExpressionLanguageProvider());
}