Added the Search API Synonym module to deal specifically with licence and license...
[yaffs-website] / vendor / drupal / console-core / src / Utils / FileQueue.php
index 1d60da3b089b556a2a660da3a0bacc1ccfc43777..445052cc80bb33a176622e8baa6b4ad7a00bd3e6 100644 (file)
@@ -9,6 +9,7 @@ namespace Drupal\Console\Core\Utils;
 
 /**
  * Class FileQueue
+ *
  * @package Drupal\Console\Core\Utils
  */
 class FileQueue
@@ -18,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;
     }