Security update for Core, with self-updated composer
[yaffs-website] / vendor / drupal / console-core / src / Utils / FileQueue.php
index 53fea32615c349ad7a7c5d99cd11d481006d2ae2..445052cc80bb33a176622e8baa6b4ad7a00bd3e6 100644 (file)
@@ -19,11 +19,27 @@ class FileQueue
      */
     private $files;
 
+    /**
+     * @var string
+     */
+    protected $appRoot;
+
+    /**
+     * FileQueue constructor.
+     *
+     * @param string $appRoot
+     */
+    public function __construct($appRoot)
+    {
+        $this->appRoot = $appRoot;
+    }
+
     /**
      * @param $file string
      */
     public function addFile($file)
     {
+        $file = str_replace($this->appRoot, '', $file);
         $this->files[] = $file;
     }