/** * {@inheritdoc} */ public function setBaseConfig(array $config) { parent::setBaseConfig($config); // Check Vars if (!$config["source"]) { throw new DcGeneralRuntimeException("Missing file name."); } $this->fileName = $config["source"]; if (isset($config['namespace'])) { $this->namespace = (string) $config['namespace']; } if (isset($config['pattern'])) { $this->pattern = (string) $config['pattern']; } if (isset($config['mode'])) { $this->mode = (string) $config['mode']; } if ($this->mode == self::MODE_DIFF) { $this->defaults = $this->resolveValues($GLOBALS); } }