public function addConfig($config) { $this->configRepository = Config::registerConfig($config); return $this; }