BackendCompilerPass example


  protected $backendPass;

  /** * {@inheritdoc} */
  protected function setUp(): void {
    parent::setUp();

    $this->backendPass = new BackendCompilerPass();
  }

  /** * Tests the process method. * * @param string $expected_class * The expected used class. * @param \Symfony\Component\DependencyInjection\ContainerBuilder $container * The container. * * @dataProvider providerTestProcess * * @covers ::process */


    // Add the compiler pass that lets service providers modify existing     // service definitions. This pass must come first so that later     // list-building passes are operating on the post-alter services list.     $container->addCompilerPass(new ModifyServiceDefinitionsPass());

    $container->addCompilerPass(new DevelopmentSettingsPass());

    $container->addCompilerPass(new ProxyServicesPass());

    $container->addCompilerPass(new BackendCompilerPass());

    $container->addCompilerPass(new CorsCompilerPass());

    $container->addCompilerPass(new StackedKernelPass());

    $container->addCompilerPass(new StackedSessionHandlerPass());

    $container->addCompilerPass(new MainContentRenderersPass());

    // Collect tagged handler services as method calls on consumer services.     $container->addCompilerPass(new TaggedHandlersPass());
    
Home | Imprint | This part of the site doesn't use cookies.