X-Git-Url: http://aleph1.co.uk/gitweb/?a=blobdiff_plain;f=vendor%2Fdrupal%2Fconsole-core%2Fsrc%2FUtils%2FFileQueue.php;h=445052cc80bb33a176622e8baa6b4ad7a00bd3e6;hb=4e1bfbf98b844da83b18aca92ef00f11a4735806;hp=1d60da3b089b556a2a660da3a0bacc1ccfc43777;hpb=a2bd1bf0c2c1f1a17d188f4dc0726a45494cefae;p=yaffs-website diff --git a/vendor/drupal/console-core/src/Utils/FileQueue.php b/vendor/drupal/console-core/src/Utils/FileQueue.php index 1d60da3b0..445052cc8 100644 --- a/vendor/drupal/console-core/src/Utils/FileQueue.php +++ b/vendor/drupal/console-core/src/Utils/FileQueue.php @@ -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; }