From ef111399a6197d25c5bd705dff8192aaa11eeac9 Mon Sep 17 00:00:00 2001 From: Daniel Kliemsch Date: Wed, 22 Jan 2020 11:53:01 +0100 Subject: [PATCH 1/2] Add clearStage function --- src/PayloadInjector.php | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/PayloadInjector.php b/src/PayloadInjector.php index b713d03..b1d91ec 100644 --- a/src/PayloadInjector.php +++ b/src/PayloadInjector.php @@ -42,6 +42,13 @@ public function stage(array $data) { return $this; } + /** + * Clear previously staged data + */ + public function clearStage() { + $this->payload = []; + } + /** * @return bool */ From 8ad414c8f7ddf720cad996013418a4b28d7791b3 Mon Sep 17 00:00:00 2001 From: Daniel Kliemsch Date: Wed, 22 Jan 2020 11:53:17 +0100 Subject: [PATCH 2/2] Bump to 0.1.2 --- composer.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/composer.json b/composer.json index 2b98026..529a38c 100644 --- a/composer.json +++ b/composer.json @@ -1,6 +1,6 @@ { "name": "level51/silverstripe-payload-injector", - "version": "0.1.1", + "version": "0.1.2", "description": "Utility for injecting JSON payload into the DOM at render time.", "homepage": "https://github.com/level51/silverstripe-payload-injector", "keywords": [