当前位置: 首页>>代码示例>>PHP>>正文


PHP Bundle::build方法代码示例

本文整理汇总了PHP中Symfony\Component\HttpKernel\Bundle\Bundle::build方法的典型用法代码示例。如果您正苦于以下问题:PHP Bundle::build方法的具体用法?PHP Bundle::build怎么用?PHP Bundle::build使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在Symfony\Component\HttpKernel\Bundle\Bundle的用法示例。


在下文中一共展示了Bundle::build方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: build

 public function build(ContainerBuilder $container)
 {
     parent::build($container);
     $container->addCompilerPass(new ThemeCompilerPass());
     $container->addCompilerPass(new TemplateResourcesPass());
     $container->addCompilerPass(new AsseticTwigFormulaPass());
 }
开发者ID:xabbuh,项目名称:LiipThemeBundle,代码行数:7,代码来源:LiipThemeBundle.php

示例2: build

 public function build(ContainerBuilder $container)
 {
     parent::build($container);
     $container->addCompilerPass(new LoadersCompilerPass());
     // Disable create cache directories for now; it's not needed anyway (structure is being created on the run).
     //            ->addCompilerPass(new CreateCacheDirectoriesCompilerPass(), PassConfig::TYPE_AFTER_REMOVING);
 }
开发者ID:jmcclell,项目名称:AvalancheImagineBundle,代码行数:7,代码来源:AvalancheImagineBundle.php

示例3: build

 /**
  * @param ContainerBuilder $container
  */
 public function build(ContainerBuilder $container)
 {
     parent::build($container);
     $container->addCompilerPass(new ThemeRepositoryPass());
     $container->addCompilerPass(new ThemeAwareSourcesPass());
     $container->addCompilerPass(new ThemeAwareLoaderDecoratorPass());
 }
开发者ID:benakacha,项目名称:Sylius,代码行数:10,代码来源:SyliusThemeBundle.php

示例4: build

 public function build(ContainerBuilder $container)
 {
     parent::build($container);
     $passConfig = $container->getCompilerPassConfig();
     $passConfig->addPass(new AddAfterInvocationProvidersPass());
     $passConfig->addPass(new SecureMethodInvocationsPass($container->getParameter('kernel.cache_dir')), PassConfig::TYPE_BEFORE_REMOVING);
 }
开发者ID:nickaggarwal,项目名称:sample-symfony2,代码行数:7,代码来源:JMSSecurityExtraBundle.php

示例5: build

 /**
  * Builds the bundle.
  *
  * It is only ever called once when the cache is empty.
  *
  * This method can be overridden to register compilation passes,
  * other extensions, ...
  *
  * @param ContainerBuilder $container A ContainerBuilder instance
  */
 public function build(ContainerBuilder $container)
 {
     parent::build($container);
     $container->addCompilerPass(new ThemeCompilerPass());
     $container->addCompilerPass(new TemplateResourcesPass());
     $container->addCompilerPass(new AddResolversPass());
 }
开发者ID:geoffreytran,项目名称:zym,代码行数:17,代码来源:ZymThemeBundle.php

示例6: build

 /**
  * @inheritdoc
  */
 public function build(ContainerBuilder $container)
 {
     parent::build($container);
     // add module pass
     $container->addCompilerPass(new ModuleCompilerPass());
     $container->addCompilerPass(new ComponentCompilerPass());
 }
开发者ID:linestorm,项目名称:linestorm-cms,代码行数:10,代码来源:LineStormCmsBundle.php

示例7: build

 /**
  * {@inheritdoc}
  */
 public function build(ContainerBuilder $container)
 {
     parent::build($container);
     $container->addCompilerPass(new AutocompleteCompilerPass());
     $container->addCompilerPass(new FormCompilerPass());
     $container->addCompilerPass(new FormGuesserCompilerPass());
 }
开发者ID:Maksold,项目名称:platform,代码行数:10,代码来源:OroFormBundle.php

示例8: build

 public function build(ContainerBuilder $container)
 {
     parent::build($container);
     $extension = $container->getExtension('security');
     $factory = new Factory();
     $extension->addSecurityListenerFactory($factory);
 }
开发者ID:xphere,项目名称:one-time-access-bundle,代码行数:7,代码来源:xPheReOneTimeAccessBundle.php

示例9: build

 public function build(ContainerBuilder $container)
 {
     parent::build($container);
     $container->addCompilerPass(new Compiler\AutoRegisterServicesPass());
     $container->addCompilerPass(new Compiler\MappingCompilerPass());
     $container->addCompilerPass(new Compiler\ConfigureDynamicRoutingPass());
 }
开发者ID:Newman101,项目名称:WellCommerce,代码行数:7,代码来源:WellCommercePageBundle.php

示例10: build

 public function build(ContainerBuilder $container)
 {
     parent::build($container);
     /** @var $extension DependencyInjection\TestExtension */
     $extension = $container->getExtension('test');
     $extension->setCustomConfig(new CustomConfig());
 }
开发者ID:BusinessCookies,项目名称:CoffeeMachineProject,代码行数:7,代码来源:TestBundle.php

示例11: build

 public function build(ContainerBuilder $container)
 {
     parent::build($container);
     $container->addCompilerPass(new TemplatingPass());
     $container->addCompilerPass(new AssetManagerPass());
     $container->addCompilerPass(new FilterManagerPass());
 }
开发者ID:rooster,项目名称:symfony,代码行数:7,代码来源:AsseticBundle.php

示例12: build

 public function build(ContainerBuilder $container)
 {
     parent::build($container);
     $container->addCompilerPass(new ServicePass());
     $container->addCompilerPass(new AdapterPass());
     $this->buildPhpcrCompilerPass($container);
 }
开发者ID:frogriotcom,项目名称:RoutingAutoBundle,代码行数:7,代码来源:CmfRoutingAutoBundle.php

示例13: build

 public function build(ContainerBuilder $container)
 {
     parent::build($container);
     $container->addCompilerPass(new TwigEnvironmentPass());
     $container->addCompilerPass(new TwigLoaderPass());
     $container->addCompilerPass(new ExceptionListenerPass());
 }
开发者ID:ronaldlunaramos,项目名称:webstore,代码行数:7,代码来源:TwigBundle.php

示例14: build

 public function build(ContainerBuilder $container)
 {
     parent::build($container);
     $container->addCompilerPass(new Compiler\AutoRegisterServicesPass());
     $container->addCompilerPass(new Compiler\MappingCompilerPass());
     $container->addCompilerPass(new Compiler\LayoutBoxConfiguratorPass());
 }
开发者ID:Newman101,项目名称:WellCommerce,代码行数:7,代码来源:WellCommerceLayoutBundle.php

示例15: build

 /**
  * {@inheritDoc}
  */
 public function build(ContainerBuilder $container)
 {
     parent::build($container);
     /** @var $extension \Payum\Bundle\PayumBundle\DependencyInjection\PayumExtension */
     $extension = $container->getExtension('payum');
     $extension->addGatewayFactory(new RedsysGatewayFactory());
 }
开发者ID:partkeepr,项目名称:PayumBundleSandbox,代码行数:10,代码来源:AcmeRedsysBundle.php


注:本文中的Symfony\Component\HttpKernel\Bundle\Bundle::build方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。