Skip to content

Commit

Permalink
Fixed bug where services would be set up more than once.
Browse files Browse the repository at this point in the history
  • Loading branch information
Marty Wallace committed Jan 10, 2017
1 parent a3eb145 commit c0d5016
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
@@ -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",
Expand Down
1 change: 1 addition & 0 deletions src/Tempest/Tempest.php
Original file line number Diff line number Diff line change
Expand Up @@ -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();
}

Expand Down

0 comments on commit c0d5016

Please sign in to comment.