eZ\Publish\Core\Base\ServiceContainer::__construct PHP Method

__construct() public method

public __construct ( string | Symfony\Component\DependencyInjection\ContainerInterface $container, string $installDir, string $cacheDir, boolean $debug = false, boolean $bypassCache = false )
$container string | Symfony\Component\DependencyInjection\ContainerInterface Path to the container file or container instance
$installDir string Installation directory, required by default 'containerBuilder.php' file
$cacheDir string Directory where PHP container cache will be stored
$debug boolean Default false should be used for production, if true resources will be checked and cache will be regenerated if necessary
$bypassCache boolean Default false should be used for production, if true completely bypasses the cache
    public function __construct($container, $installDir, $cacheDir, $debug = false, $bypassCache = false)
    {
        $this->innerContainer = $container;
        $this->installDir = $installDir;
        $this->cacheDir = $cacheDir;
        $this->debug = $debug;
        $this->bypassCache = $bypassCache;
        $this->initializeContainer();
    }