You are here

public function ConfigurationManager::configuration in Configuration Management 7.3

File

src/ConfigurationManager.php, line 192

Class

ConfigurationManager

Namespace

Configuration

Code

public function configuration($identifier) {
  $type = substr($identifier, 0, strpos($identifier, '.'));
  if ($this
    ->cache()
    ->contains($identifier)) {
    return new ConfigurationProxy($identifier, $this->handlers
      ->get($type)
      ->get(), $this, $this
      ->cache()
      ->get($identifier));
  }
  else {
    return new ConfigurationProxy($identifier, $this->handlers
      ->get($type)
      ->get(), $this);
  }
}