public function boot(): ContainerInterface
    {
        $this->containerBuilder->addCompilerPasses(new TaggedMessageHandlersCompilerPass(), new ServiceLocatorTagPass());

        return $this->containerBuilder->build();
    }
public function boot(): ContainerInterface
    {
        $this->containerBuilder->addCompilerPasses(new TaggedMessageHandlersCompilerPass(), new ServiceLocatorTagPass());

        return $this->containerBuilder->build();
    }
public function boot ( ) : ContainerInterface { $ this -> containerBuilder -> addCompilerPasses ( new TaggedMessageHandlersCompilerPass ( ) , new ServiceLocatorTagPass ( ) ) ; return $ this -> containerBuilder -> build ( ) ; }
Compile container.

@throws \InvalidArgumentException When provided tag is not defined in this extension
@throws \LogicException Cannot dump an uncompiled container
@throws \RuntimeException When cache file can't be written
@throws \Symfony\Component\DependencyInjection\Exception\EnvParameterException When an env var exists but has not been dumped
@throws \Throwable Boot module failed

@return ContainerInterface
Compile container .