SimpleSAML_Utilities::resolvePath PHP Method

resolvePath() public static method

Deprecation: This method will be removed in SSP 2.0. Please use SimpleSAML\Utils\System::resolvePath() instead.
public static resolvePath ( $path, $base = null )
    public static function resolvePath($path, $base = null)
    {
        return \SimpleSAML\Utils\System::resolvePath($path, $base);
    }

Usage Example

Ejemplo n.º 1
0
 /**
  * Initializes the SimpleSAML_MetaShare_Store object. Only called by the getInstance
  * singleton accessor.
  */
 private function __construct()
 {
     $metaConfig = SimpleSAML_Configuration::getConfig('metashare.php');
     $this->metadataPath = $metaConfig->getString('metashare.path');
     $this->metadataPath = SimpleSAML_Utilities::resolvePath($this->metadataPath);
     if (!is_dir($this->metadataPath)) {
         $ret = mkdir($this->metadataPath, 0755, TRUE);
         if (!$ret) {
             throw new Exception('Unable to create directory: ' . $this->metadataPath);
         }
     }
 }
All Usage Examples Of SimpleSAML_Utilities::resolvePath