phpbb\di\container_builder::without_compiled_container PHP Method

without_compiled_container() public method

Disable the compilation of the container.
    public function without_compiled_container()
    {
        $this->compile_container = false;
        return $this;
    }

Usage Example

Beispiel #1
0
 public function test_without_compiled_container()
 {
     $this->builder->without_compiled_container();
     $container = $this->builder->get_container();
     $this->assertInstanceOf('Symfony\\Component\\DependencyInjection\\ContainerBuilder', $container);
     // Checks compile_container
     $this->assertFalse($container->isFrozen());
 }