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

setConfigurationForTheCurrentDomain() protected method

Sets the configuration from the current domain.
    protected function setConfigurationForTheCurrentDomain()
    {
        $globalConfig =& $GLOBALS['TYPO3_CONF_VARS']['EXTCONF']['realurl'];
        if (is_array($globalConfig)) {
            $configurationKey = $this->getConfigurationKey();
            $configuration = $globalConfig[$configurationKey];
            if (is_array($configuration)) {
                $this->configuration = $configuration;
            }
            $this->setRootPageId();
            if ($this->mode == self::MODE_ENCODE) {
                // Decode is handled when detecting configuration key
                $this->updateConfigurationForEncoding($configurationKey);
            }
            if (is_array($this->domainConfiguration)) {
                $this->configuration['domains'] = $this->domainConfiguration;
            }
            unset($this->domainConfiguration);
        }
    }