src/Environaut/Config/Reader/Dom/DomDocument.php
public function loadXml($source, $options = 0)
    {
        $user_error_handling = $this->enableErrorHandling();

        $success = parent::loadXML($source, $options);

        $this->handleErrors(
            'Loading the document failed. Details are:' . PHP_EOL . PHP_EOL,
            PHP_EOL . 'Please fix the mentioned errors.',
            $user_error_handling
        );

        $this->refreshXpath();

        return $success;
    }
public function loadXml($source, $options = 0)
    {
        $user_error_handling = $this->enableErrorHandling();

        $success = parent::loadXML($source, $options);

        $this->handleErrors(
            'Loading the document failed. Details are:' . PHP_EOL . PHP_EOL,
            PHP_EOL . 'Please fix the mentioned errors.',
            $user_error_handling
        );

        $this->refreshXpath();

        return $success;
    }
Loads XML from a string and registers the Environaut configuration
namespace if the XML document is an Environaut configuration file.

@param string $source xml string to load
@param int $options libXml flags to use for loading (like LIBXML_NOCDATA etc.)

@return bool true on success; false on error

@throws \DOMException in case of errors loading the document from the given string