protected function buildRouter()
    {
        // Get the MicroCMS router builder, and build the router.
        $builder = new RouterBuilder(
            $this->container->get('template_resolver'),
            $this->container->get('kernel.config_locator'),
            $this->container->getParameter('kernel.env')
        );

        // Inject logger
        if ($this->container->has('logger')) {
            $builder->setLogger($this->container->get('logger'));
        }

        // Finish Router
        $router = $builder->prepareRouter();

        return($router);
    }