/** * Gets url from config. Prepends root url. * Traverses config by class namespace under Csfd. * @param string $key * @param array $args * @throws \Csfd\InternalException * @return string url */ protected function getUrl($key, array $args = NULL) { if (!$this->urlBuilder) { throw new InternalException('UrlBuilder not set, call self::setUrlBuilder.'); } $path = $this->getConfigKeys(); array_push($path, $key); return $this->urlBuilder->get($path, $args); }