public function __construct($name = null)
 {
     parent::__construct($name);
     $this->projectsTtl = getenv('PLATFORMSH_CLI_PROJECTS_TTL') ?: 3600;
     $this->environmentsTtl = getenv('PLATFORMSH_CLI_ENVIRONMENTS_TTL') ?: 600;
     if (getenv('PLATFORMSH_CLI_SESSION_ID')) {
         self::$sessionId = getenv('PLATFORMSH_CLI_SESSION_ID');
     }
     if (!isset(self::$apiToken) && getenv('PLATFORMSH_CLI_API_TOKEN')) {
         self::$apiToken = getenv('PLATFORMSH_CLI_API_TOKEN');
     }
     if (!isset(self::$cache)) {
         // Note: the cache directory is based on self::$sessionId.
         self::$cache = getenv('PLATFORMSH_CLI_DISABLE_CACHE') ? new VoidCache() : new FilesystemCache($this->getCacheDir());
     }
 }