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(); }