getConfig() public method

public getConfig ( string | null $key = null, mixed $default = null ) : mixed
$key string | null
$default mixed
return mixed
Beispiel #1
0
 /**
  * @param string     $option
  * @param mixed|null $default
  *
  * @return mixed|null
  */
 public function getOption($option, $default = null)
 {
     return $this->environment->getConfig('renderer/' . $option, $default);
 }
Beispiel #2
0
 public function setEnvironment(Environment $environment)
 {
     $this->config->mergeConfig($environment->getConfig());
 }
 protected function getLinkRenderer(Environment $environment)
 {
     return new LinkRenderer($environment->getConfig('daux'));
 }