public function __construct($name = null)
 {
     parent::__construct($name);
     $this->projectsTtl = getenv('PLATFORMSH_CLI_PROJECTS_TTL') ?: 3600;
     $this->environmentsTtl = getenv('PLATFORMSH_CLI_ENVIRONMENTS_TTL') ?: 600;
     $this->usersTtl = getenv('PLATFORMSH_CLI_USERS_TTL') ?: 3600;
     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');
     }
     // Initialize the local file-based cache.
     CacheUtil::setCacheDir($this->getConfigDir() . '/cache');
 }