Updated Drupal to 8.6. This goes with the following updates because it's possible...
[yaffs-website] / vendor / consolidation / site-alias / src / Util / FsUtils.php
diff --git a/vendor/consolidation/site-alias/src/Util/FsUtils.php b/vendor/consolidation/site-alias/src/Util/FsUtils.php
new file mode 100644 (file)
index 0000000..b5741f2
--- /dev/null
@@ -0,0 +1,26 @@
+<?php
+namespace Consolidation\SiteAlias\Util;
+
+use Symfony\Component\Filesystem\Filesystem;
+use Webmozart\PathUtil\Path;
+
+class FsUtils
+{
+    /**
+     * Returns canonicalized absolute pathname.
+     *
+     * The difference between this and PHP's realpath() is that this will
+     * return the original path even if it doesn't exist.
+     *
+     * @param string $path
+     *   The path being checked.
+     *
+     * @return string
+     *   The canonicalized absolute pathname.
+     */
+    public static function realpath($path)
+    {
+        $realpath = realpath($path);
+        return $realpath ?: $path;
+    }
+}