From c0d501671183d0e5850144f4f97c55e363595cb4 Mon Sep 17 00:00:00 2001 From: Marty Wallace Date: Tue, 10 Jan 2017 11:55:43 +1100 Subject: [PATCH] Fixed bug where services would be set up more than once. --- composer.json | 2 +- src/Tempest/Tempest.php | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/composer.json b/composer.json index 823ae23..558ce98 100644 --- a/composer.json +++ b/composer.json @@ -1,6 +1,6 @@ { "name": "martywallace/tempest", - "version": "3.0.2", + "version": "3.0.3", "description": "A tiny PHP framework.", "homepage": "https://github.com/MartyWallace/Tempest", "type": "library", diff --git a/src/Tempest/Tempest.php b/src/Tempest/Tempest.php index cbecaf5..0c4196f 100644 --- a/src/Tempest/Tempest.php +++ b/src/Tempest/Tempest.php @@ -165,6 +165,7 @@ public function __get($prop) { if (!array_key_exists($prop, $this->_setupServices)) { // First time being accessed, setup the service. + $this->_setupServices[$prop] = true; $service->setup(); }