build() публичный Метод

public build ( ContainerBuilder $container )
$container Symfony\Component\DependencyInjection\ContainerBuilder
 /**
  * Tests the build() method.
  */
 public function testBuild()
 {
     $container = new ContainerBuilder();
     $container->setParameter('kernel.root_dir', $this->getRootDir());
     $bundle = new ContaoCoreBundle();
     $bundle->build($container);
     $classes = [];
     foreach ($container->getCompilerPassConfig()->getBeforeOptimizationPasses() as $pass) {
         $reflection = new \ReflectionClass($pass);
         $classes[] = $reflection->getName();
     }
     $this->assertEquals(['Contao\\CoreBundle\\DependencyInjection\\Compiler\\AddPackagesPass', 'Contao\\CoreBundle\\DependencyInjection\\Compiler\\AddResourcesPathsPass'], $classes);
 }