public function boot()
	{
		if (($this->app->isSite() && $this->app['config']->get('force_ssl') == 2)
			|| ($this->app->isAdmin() && $this->app['config']->get('force_ssl') >= 1))
		{
			if (!$this->app['request']->isSecure())
			{
				$uri = str_replace('http:', 'https:', $this->app['request']->getUri());

				$redirect = new RedirectResponse($uri);
				$redirect->setRequest($this->app['request']);
				$redirect->send();

				$this->app->close();
			}
		}
	}