getConfig() public method

public getConfig ( string | null $key = null, mixed $default = null ) : mixed
$key string | null
$default mixed
return mixed
コード例 #1
0
ファイル: HtmlRenderer.php プロジェクト: RonnyLV/commonmark
 /**
  * @param string     $option
  * @param mixed|null $default
  *
  * @return mixed|null
  */
 public function getOption($option, $default = null)
 {
     return $this->environment->getConfig('renderer/' . $option, $default);
 }
コード例 #2
0
ファイル: EmphasisParser.php プロジェクト: fxcebx/commonmark
 public function setEnvironment(Environment $environment)
 {
     $this->config->mergeConfig($environment->getConfig());
 }
コード例 #3
0
 protected function getLinkRenderer(Environment $environment)
 {
     return new LinkRenderer($environment->getConfig('daux'));
 }