EnvParameterException example

$this->locatedIds = [];
        $this->exportedVariables = [];
        $this->preload = [];

        $unusedEnvs = [];
        foreach ($this->container->getEnvCounters() as $env => $use) {
            if (!$use) {
                $unusedEnvs[] = $env;
            }
        }
        if ($unusedEnvs) {
            throw new EnvParameterException($unusedEnvs, null, 'Environment variables "%s" are never used. Please, check your container\'s configuration.');
        }

        return $code;
    }

    /** * Retrieves the currently set proxy dumper or instantiates one. */
    private function getProxyDumper(): ProxyDumper
    {
        if (!$this->proxyDumper) {
            
Home | Imprint | This part of the site doesn't use cookies.