getBasePath() public method

The path is guaranteed to start and end with a slash ('/'). E.g.: /simplesaml/
public getBasePath ( ) : string
return string The absolute path where SimpleSAMLphp can be reached in the web server.
 /**
  * Constructor
  *
  * @param SimpleSAML_Configuration $configuration Configuration object
  * @param string                   $template Which template file to load
  * @param string|null              $defaultDictionary The default dictionary where tags will come from.
  */
 public function __construct(\SimpleSAML_Configuration $configuration, $template, $defaultDictionary = null)
 {
     $this->configuration = $configuration;
     $this->template = $template;
     // TODO: do not remove the slash from the beginning, change the templates instead!
     $this->data['baseurlpath'] = ltrim($this->configuration->getBasePath(), '/');
     $result = $this->findModuleAndTemplateName($template);
     $this->module = $result[0];
     $this->translator = new SimpleSAML\Locale\Translate($configuration, $defaultDictionary);
     $this->localization = new \SimpleSAML\Locale\Localization($configuration);
     $this->twig = $this->setupTwig();
 }
 /**
  * Save cookie with the given name and value.
  *
  * This function will save a cookie with the given name and value for the current discovery
  * service type.
  *
  * @param string $name The name of the cookie.
  * @param string $value The value of the cookie.
  */
 protected function setCookie($name, $value)
 {
     $prefixedName = 'idpdisco_' . $this->instance . '_' . $name;
     $params = array('lifetime' => 60 * 60 * 24 * 90, 'path' => $this->config->getBasePath(), 'httponly' => false);
     \SimpleSAML\Utils\HTTP::setCookie($prefixedName, $value, $params, false);
 }