From 06d86973cfb5ba3589018e86d82a92a6cab6ec0c Mon Sep 17 00:00:00 2001 From: Michael van Tricht Date: Wed, 23 Mar 2016 11:17:42 +0100 Subject: [PATCH] [FileSystem] Add support for Google App Engine. --- src/Symfony/Component/Filesystem/Filesystem.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/Symfony/Component/Filesystem/Filesystem.php b/src/Symfony/Component/Filesystem/Filesystem.php index a2700eda01..43b84060b8 100644 --- a/src/Symfony/Component/Filesystem/Filesystem.php +++ b/src/Symfony/Component/Filesystem/Filesystem.php @@ -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; }