phpbb\di\container_builder::without_cache PHP Method

without_cache() public method

Disable the caching of the container.
public without_cache ( )
    public function without_cache()
    {
        $this->use_cache = false;
        return $this;
    }

Usage Example

Beispiel #1
0
 public function test_without_cache()
 {
     $this->builder->without_cache();
     $container = $this->builder->get_container();
     $this->assertInstanceOf('Symfony\\Component\\DependencyInjection\\ContainerBuilder', $container);
     // Checks dump_container
     $this->assertFalse(is_file($this->filename));
     // Checks the construction of a dumped container
     $container = $this->builder->get_container();
     $this->assertNotInstanceOf('phpbb_cache_container', $container);
     $this->assertInstanceOf('Symfony\\Component\\DependencyInjection\\ContainerBuilder', $container);
     $this->assertTrue($container->isFrozen());
 }
All Usage Examples Of phpbb\di\container_builder::without_cache