public function buildRootResource()
    {
        $language = new ExpressionLanguage();

        $resources = array();
        foreach ($this->resourceConfig as $name => $resource) {
            $resources[] = new Values\Resource(
                $name,
                $resource['mediaType'],
                $language->evaluate($resource['href'], [
                    'router' => $this->router,
                    'templateRouter' => $this->templateRouter,
                ])
            );
        }

        return new Root($resources);
    }