diff --git a/composer.json b/composer.json index 48ef224..2df01fb 100644 --- a/composer.json +++ b/composer.json @@ -21,7 +21,7 @@ "illuminate/view": "5.6.x|5.7.x|5.8.x|^6.0|^7.0|^8.0", "illuminate/support": "5.6.x|5.7.x|5.8.x|^6.0|^7.0|^8.0", "illuminate/contracts": "5.6.x|5.7.x|5.8.x|^6.0|^7.0|^8.0", - "php": "^7.2" + "php": "^7.2|^8.0" }, "require-dev": { "phpunit/phpunit": "^7.5|^8.0", diff --git a/src/View/Factory.php b/src/View/Factory.php index 45cabea..cd03e3d 100644 --- a/src/View/Factory.php +++ b/src/View/Factory.php @@ -1,4 +1,6 @@ -parseData($data)); - return tap(new View($this, $this->getEngineFromPath($path), $view, $path, $data, $this->shortcode), function ($view) { + return tap(new View($this->shortcode, $this, $this->getEngineFromPath($path), $view, $path, $data), function ($view) { $this->callCreator($view); }); } diff --git a/src/View/View.php b/src/View/View.php index 6807229..0305205 100644 --- a/src/View/View.php +++ b/src/View/View.php @@ -1,4 +1,6 @@ -shortcode = $shortcode;