protected function redirectTo($uri = '', $type = 'location', $httpResponseCode = 302) : AbstractBaseController
    {
        $container = $this->container();
        if ($container->has('url')) {
            $container->get('url')->redirectTo($uri, $type, $httpResponseCode);
        }

        return $this;
    }