Exemplo n.º 1
0
 public function build(ContainerBuilder $container)
 {
     parent::build($container);
     $container->addCompilerPass(new WidgetStrategyCompilerPass());
     $container->addCompilerPass(new WidgetVoterCompilerPass());
     $container->addCompilerPass(new WidgetFactoryCompilerPass());
 }
Exemplo n.º 2
0
 /**
  * {@inheritdoc}
  */
 public function build(ContainerBuilder $container)
 {
     parent::build($container);
     $container->addCompilerPass(new RegisterChannelFactoryPass());
     $container->addCompilerPass(new CompositeChannelContextPass());
     $container->addCompilerPass(new CompositeRequestResolverPass());
 }
Exemplo n.º 3
0
 /**
  * {@inheritdoc}
  */
 public function build(ContainerBuilder $container)
 {
     parent::build($container);
     $container->addCompilerPass(new MetadataRendererCompilerPass());
     $container->addCompilerPass(new MetadataHierarchyProviderCompilerPass());
     $container->addCompilerPass(new DynamicFormsChoicesMapCompilerPass());
 }
Exemplo n.º 4
0
 /**
  * {@inheritdoc}
  */
 public function build(ContainerBuilder $container)
 {
     parent::build($container);
     $container->addCompilerPass(new RegisterCalculatorsPass());
     $container->addCompilerPass(new RegisterRuleCheckersPass());
     $container->addCompilerPass(new RegisterShippingMethodsResolversPass());
 }
Exemplo n.º 5
0
 /**
  * {@inheritdoc}
  */
 public function build(ContainerBuilder $container)
 {
     parent::build($container);
     $container->addCompilerPass(new DoctrineSluggablePass());
     $container->addCompilerPass(new RoutingRepositoryPass());
     $container->addCompilerPass(new LazyCacheWarmupPass());
 }
Exemplo n.º 6
0
 /**
  * {@inheritdoc}
  */
 public function build(ContainerBuilder $container)
 {
     parent::build($container);
     $container->addCompilerPass(new CompositePromotionEligibilityCheckerPass());
     $container->addCompilerPass(new CompositePromotionCouponEligibilityCheckerPass());
     $container->addCompilerPass(new RegisterRuleCheckersPass());
     $container->addCompilerPass(new RegisterPromotionActionsPass());
 }
Exemplo n.º 7
0
 /**
  * {@inheritdoc}
  */
 public function build(ContainerBuilder $container)
 {
     parent::build($container);
     $container->addCompilerPass(new RoutingRepositoryPass());
     $container->addCompilerPass(new LazyCacheWarmupPass());
     $container->addCompilerPass(new SitemapProviderPass());
     $container->addCompilerPass(new RegisterTaxCalculationStrategiesPass());
 }
Exemplo n.º 8
0
 /**
  * @param ContainerBuilder $container
  */
 public function build(ContainerBuilder $container)
 {
     parent::build($container);
     $container->addCompilerPass(new TranslatorAliasingPass());
     $container->addCompilerPass(new TranslatorFallbackLocalesPass());
     $container->addCompilerPass(new TranslatorLoaderProviderPass());
     $container->addCompilerPass(new TranslatorResourceProviderPass());
 }
Exemplo n.º 9
0
 /**
  * {@inheritdoc}
  */
 public function build(ContainerBuilder $container)
 {
     parent::build($container);
     $container->addCompilerPass(new RoutingRepositoryPass());
     $container->addCompilerPass(new LazyCacheWarmupPass());
     $container->addCompilerPass(new RegisterTaxCalculationStrategiesPass());
     $container->addCompilerPass(new RegisterCurrencyHandlersPass());
     $container->addCompilerPass(new RegisterLocaleHandlersPass());
 }
Exemplo n.º 10
0
 public function build(ContainerBuilder $container)
 {
     parent::build($container);
     $container->addCompilerPass(new RouterCompilerPass());
     $container->addCompilerPass(new TwigExceptionCompilerPass());
     $container->addCompilerPass(new TwigPathCompilerPass($this->kernel));
     $container->addCompilerPass(new SymEditExtensionCompilerPass());
     $container->addCompilerPass(new LinkShortcodeCompilerPass());
     $container->addCompilerPass(new ExpressionLanguageCompilerPass());
     $container->addCompilerPass(new WidgetTwigExtensionCompilerPass());
 }
Exemplo n.º 11
0
 /**
  * {@inheritdoc}
  */
 public function build(ContainerBuilder $container)
 {
     parent::build($container);
     $container->addCompilerPass(new RegisterProcessorsPass());
     $container->addCompilerPass(new RegisterCartContextsPass());
 }
Exemplo n.º 12
0
 /**
  * {@inheritdoc}
  */
 public function build(ContainerBuilder $container)
 {
     parent::build($container);
     $container->addCompilerPass(new RegisterSchemasPass());
 }
Exemplo n.º 13
0
 public function build(ContainerBuilder $container)
 {
     parent::build($container);
     $container->addCompilerPass(new GalleryItemFactoryCompilerPass());
 }
Exemplo n.º 14
0
 public function build(ContainerBuilder $container)
 {
     parent::build($container);
     $container->addCompilerPass(new ProfileTypeCompilerPass());
 }
Exemplo n.º 15
0
 /**
  * {@inheritdoc}
  */
 public function build(ContainerBuilder $container)
 {
     parent::build($container);
     $container->addCompilerPass(new RegisterPaymentMethodsResolversPass());
 }
Exemplo n.º 16
0
 /**
  * {@inheritdoc}
  */
 public function build(ContainerBuilder $container)
 {
     parent::build($container);
     $container->addCompilerPass(new RegisterRuleCheckersPass());
     $container->addCompilerPass(new RegisterPromotionActionsPass());
 }
Exemplo n.º 17
0
 /**
  * @inheritDoc
  */
 public function build(ContainerBuilder $container)
 {
     parent::build($container);
     $container->addCompilerPass(new CompositeLocaleContextPass());
 }
Exemplo n.º 18
0
 /**
  * {@inheritdoc}
  */
 public function build(ContainerBuilder $container)
 {
     parent::build($container);
     $container->addCompilerPass(new RegisterZoneFactoryPass());
 }
Exemplo n.º 19
0
 /**
  *
  */
 public function getBundlePrefix()
 {
     parent::getBundlePrefix();
 }
Exemplo n.º 20
0
 /**
  * {@inheritdoc}
  */
 public function build(ContainerBuilder $container)
 {
     parent::build($container);
     $container->addCompilerPass(new ServicesPass());
 }
Exemplo n.º 21
0
    /**
     * Path routing
     *
     * @param AbstractResourceBundle $bundle
     *
     * @return null
     */
    private function patchRouting(AbstractResourceBundle $bundle)
    {
        $routingPath = $bundle->getPath() . '/Resources/config/routing/';
        $prefix = $this->getBundlePrefix();
        $namePrefix = strtolower($this->getBundlePrefix($bundle) . '_' . $this->model);
        $bundleName = $bundle->getName();
        $entityClass = $this->getContainer()->get('doctrine')->getAliasNamespace($this->bundle->getName()) . '\\' . $this->model;
        $identifier = $this->getContainer()->get('doctrine')->getManager()->getClassMetadata($entityClass)->getIdentifier();
        $this->renderFile('controller/routing/routing.yml.twig', $routingPath . strtolower($this->model) . '.yml', array('route_name_prefix' => $namePrefix, 'bundle' => $prefix, 'entity' => $this->model, 'identifier' => $identifier[0], 'resource' => $bundle->getName(), 'actions' => $this->configuration['actions']));
        $path = $routingPath . 'main.yml';
        if (!file_exists($path)) {
            $path = $this->getContainer()->get('kernel')->getRootDir() . '/config/routing.yml';
        }
        $prefixName = strtolower($this->model);
        $nodeDeclaration = <<<EOF
{$namePrefix}:
    resource: @{$bundleName}/Resources/config/routing/{$prefixName}.yml
    prefix: /{$prefixName}
EOF;
        if (!$this->refExist($path, $namePrefix)) {
            $this->dumpFile($path, "\n" . $nodeDeclaration, false, false);
        }
        return null;
    }
Exemplo n.º 22
0
 /**
  * {@inheritdoc}
  */
 public function build(ContainerBuilder $container)
 {
     parent::build($container);
     $container->addCompilerPass(new ValidatorPass());
 }
Exemplo n.º 23
0
 /**
  * {@inheritdoc}
  */
 public function build(ContainerBuilder $container)
 {
     parent::build($container);
     $container->addCompilerPass(new DoctrineSluggablePass());
 }
Exemplo n.º 24
0
 /**
  * {@inheritdoc}
  */
 public function build(ContainerBuilder $container)
 {
     parent::build($container);
     $container->addCompilerPass(new RegisterDataFetcherPass());
     $container->addCompilerPass(new RegisterRenderersPass());
 }
Exemplo n.º 25
0
 /**
  * {@inheritdoc}
  */
 public function build(ContainerBuilder $container)
 {
     parent::build($container);
     $container->addCompilerPass(new RegisterFeeCalculatorsPass());
 }