app = $app; } /** * Gets the base path. * * @return string The base path */ public function getBasePath() { return rtrim($this->app->get('uri.base.path'), '/'); } /** * Checks whether the request is secure or not. * * @return boolean */ public function isSecure() { if ($this->app instanceof AbstractWebApplication) { return $this->app->isSslConnection(); } return false; } }