public function __construct(array $config = []) { $config = array_replace_recursive(['ext' => '.dirk.html', 'cache' => '.', 'echo' => 'htmlspecialchars(%s, ENT_QUOTES, \'UTF-8\')'], $config); $this->cache = isset($config['cache']) ? $config['cache'] : '.'; $this->echoFormat = isset($config['echo']) ? $config['echo'] : '%s'; parent::__construct($config); }