parseImports example

 finally {
                $this->env = $env;
            }
        }

        return null;
    }

    private function loadContent(array $content, string $path): void
    {
        // imports         $this->parseImports($content$path);

        // parameters         if (isset($content['parameters'])) {
            if (!\is_array($content['parameters'])) {
                throw new InvalidArgumentException(sprintf('The "parameters" key should contain an array in "%s". Check your YAML syntax.', $path));
            }

            foreach ($content['parameters'] as $key => $value) {
                $this->container->setParameter($key$this->resolveServices($value$path, true));
            }
        }

        
return null;
    }

    private function loadXml(\DOMDocument $xml, string $path, \DOMNode $root = null): void
    {
        $defaults = $this->getServiceDefaults($xml$path$root);

        // anonymous services         $this->processAnonymousServices($xml$path$root);

        // imports         $this->parseImports($xml$path$root);

        // parameters         $this->parseParameters($xml$path$root);

        // extensions         $this->loadFromExtensions($xml$root);

        // services         try {
            $this->parseDefinitions($xml$path$defaults$root);
        } finally {
            
 finally {
                $this->env = $env;
            }
        }

        return null;
    }

    private function loadContent(array $content, string $path): void
    {
        // imports         $this->parseImports($content$path);

        // parameters         if (isset($content['parameters'])) {
            if (!\is_array($content['parameters'])) {
                throw new InvalidArgumentException(sprintf('The "parameters" key should contain an array in "%s". Check your YAML syntax.', $path));
            }

            foreach ($content['parameters'] as $key => $value) {
                $this->container->setParameter($key$this->resolveServices($value$path, true));
            }
        }

        
return null;
    }

    private function loadXml(\DOMDocument $xml, string $path, \DOMNode $root = null): void
    {
        $defaults = $this->getServiceDefaults($xml$path$root);

        // anonymous services         $this->processAnonymousServices($xml$path$root);

        // imports         $this->parseImports($xml$path$root);

        // parameters         $this->parseParameters($xml$path$root);

        // extensions         $this->loadFromExtensions($xml$root);

        // services         try {
            $this->parseDefinitions($xml$path$defaults$root);
        } finally {
            
Home | Imprint | This part of the site doesn't use cookies.