DmitryDulepov\Realurl\Configuration\ConfigurationReader::get PHP Метод

get() публичный Метод

Leading and trailing slashes are removed. Special use: 'extconf/xxx' gets the entry from the ext_conf_template.txt.
public get ( string $path ) : mixed
$path string
Результат mixed
    public function get($path)
    {
        if (substr($path, 0, 8) == 'extconf/') {
            $value = $this->extConfiguration[substr($path, 8)];
        } else {
            $value = $this->getFromConfiguration($path);
        }
        return $value;
    }

Usage Example

Пример #1
0
 /**
  * Initializes the instance.
  *
  * @throws \Exception
  */
 protected function initialize()
 {
     $this->initializeConfiguration();
     $this->emptySegmentValue = $this->configuration->get('init/emptySegmentValue');
     $this->rootPageId = (int) $this->configuration->get('pagePath/rootpage_id');
     $this->utility = GeneralUtility::makeInstance('DmitryDulepov\\Realurl\\Utility', $this->configuration);
     $this->cache = $this->utility->getCache();
     $this->separatorCharacter = $this->configuration->get('pagePath/spaceCharacter');
 }
All Usage Examples Of DmitryDulepov\Realurl\Configuration\ConfigurationReader::get