[FileSystem] Add support for Google App Engine.

This commit is contained in:
Michael van Tricht 2016-03-23 11:17:42 +01:00 committed by Fabien Potencier
parent 6376ea2296
commit 06d86973cf
1 changed files with 3 additions and 3 deletions

View File

@ -486,13 +486,13 @@ class Filesystem
{
list($scheme, $hierarchy) = $this->getSchemeAndHierarchy($dir);
// If no scheme or scheme is "file" create temp file in local filesystem
if (null === $scheme || 'file' === $scheme) {
// If no scheme or scheme is "file" or "gs" create temp file in local filesystem
if (null === $scheme || 'file' === $scheme || 'gs' === $scheme) {
$tmpFile = tempnam($hierarchy, $prefix);
// If tempnam failed or no scheme return the filename otherwise prepend the scheme
if (false !== $tmpFile) {
if (null !== $scheme) {
if (null !== $scheme && 'gs' !== $scheme) {
return $scheme.'://'.$tmpFile;
}