diff --git a/app/lib/Sage/Asset.php b/app/lib/Sage/Asset.php index fd47a7bfa1..3508ff8729 100644 --- a/app/lib/Sage/Asset.php +++ b/app/lib/Sage/Asset.php @@ -1,6 +1,6 @@ manifest = $manifest; $this->asset = basename($file); $this->dir = dirname($file) != '.' ? dirname($file) : ''; diff --git a/app/lib/Sage/Assets/JsonManifest.php b/app/lib/Sage/Assets/JsonManifest.php index 9b776d0452..ff9936430e 100644 --- a/app/lib/Sage/Assets/JsonManifest.php +++ b/app/lib/Sage/Assets/JsonManifest.php @@ -5,7 +5,7 @@ * @package Roots\Sage * @author QWp6t */ -class JsonManifest implements IManifest { +class JsonManifest implements ManifestInterface { /** @var array */ protected $manifest = []; diff --git a/app/lib/Sage/Assets/IManifest.php b/app/lib/Sage/Assets/ManifestInterface.php similarity index 87% rename from app/lib/Sage/Assets/IManifest.php rename to app/lib/Sage/Assets/ManifestInterface.php index 62b5134261..749185b0e4 100644 --- a/app/lib/Sage/Assets/IManifest.php +++ b/app/lib/Sage/Assets/ManifestInterface.php @@ -1,11 +1,11 @@ getSlug()] = $wrapper; return new static($wrapper->getWrappers(), $context); } @@ -40,7 +40,9 @@ public static function unwrap($slug = '', $context = []) { end(self::$wrappers); $slug = key(self::$wrappers); } - return new static(self::$wrappers[$slug]->getTemplate(), $context); + $template = new static(self::$wrappers[$slug]->getTemplate(), $context); + unset(self::$wrappers[$slug]); + return $template; } /** diff --git a/app/lib/Sage/Template/Wrapper.php b/app/lib/Sage/Template/Wrapper.php index 5ae23d8a51..009b56b07c 100644 --- a/app/lib/Sage/Template/Wrapper.php +++ b/app/lib/Sage/Template/Wrapper.php @@ -1,11 +1,11 @@ =5.5.0", + "php": ">=5.4.0", "composer/installers": "~1.0" } }