DmitryDulepov\Realurl\Configuration\ConfigurationReader::__construct PHP Method

__construct() public method

Initializes the class.
public __construct ( integer $mode, array $urlParameters = [] )
$mode integer One of MODE_* constants
$urlParameters array
    public function __construct($mode, array $urlParameters = array())
    {
        $this->mode = $mode;
        $this->urlParameters = $urlParameters;
        $this->utility = GeneralUtility::makeInstance('DmitryDulepov\\Realurl\\Utility', $this);
        try {
            $this->setHostnames();
            $this->loadExtConfiguration();
            $this->performAutomaticConfiguration();
            $this->setConfigurationForTheCurrentDomain();
            $this->postProcessConfiguration();
        } catch (\Exception $exception) {
            $this->exception = $exception;
        }
    }