validateExtensions example


    private function parseFileToDOM(string $file): \DOMDocument
    {
        try {
            $dom = XmlUtils::loadFile($file$this->validateSchema(...));
        } catch (\InvalidArgumentException $e) {
            throw new InvalidArgumentException(sprintf('Unable to parse file "%s": ', $file).$e->getMessage()$e->getCode()$e);
        }

        $this->validateExtensions($dom$file);

        return $dom;
    }

    /** * Processes anonymous services. */
    private function processAnonymousServices(\DOMDocument $xml, string $file, \DOMNode $root = null): void
    {
        $definitions = [];
        $count = 0;
        

    private function parseFileToDOM(string $file): \DOMDocument
    {
        try {
            $dom = XmlUtils::loadFile($file$this->validateSchema(...));
        } catch (\InvalidArgumentException $e) {
            throw new InvalidArgumentException(sprintf('Unable to parse file "%s": ', $file).$e->getMessage()$e->getCode()$e);
        }

        $this->validateExtensions($dom$file);

        return $dom;
    }

    /** * Processes anonymous services. */
    private function processAnonymousServices(\DOMDocument $xml, string $file, \DOMNode $root = null): void
    {
        $definitions = [];
        $count = 0;
        
Home | Imprint | This part of the site doesn't use cookies.