Platformsh\Cli\CliConfig::getUserConfigDir PHP Méthode

getUserConfigDir() public méthode

public getUserConfigDir ( ) : string
Résultat string
    public function getUserConfigDir()
    {
        return FilesystemHelper::getHomeDirectory() . '/' . $this->get('application.user_config_dir');
    }

Usage Example

Exemple #1
0
 protected function setUpCache()
 {
     if (!isset(self::$cache)) {
         if (!empty($this->config->get('api.disable_cache'))) {
             self::$cache = new VoidCache();
         } else {
             self::$cache = new FilesystemCache($this->config->getUserConfigDir() . '/cache', FilesystemCache::EXTENSION, 077);
         }
     }
 }
All Usage Examples Of Platformsh\Cli\CliConfig::getUserConfigDir