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();
			}
		}
	}
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();
			}
		}
	}
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 ( ) ; } } }
Force SSL if site is configured to and
the connection is not secure.

@return  void
Force SSL if site is configured to and the connection is not secure .