Browse files

Don't use singletons

  • Loading branch information...
1 parent a686d30 commit 5d7969558a56d752aca27e18de5406c59c08025c @dave1010 committed Apr 3, 2012
Showing with 1 addition and 0 deletions.
  1. +1 −0 Singleton.php
View
1 Singleton.php
@@ -1,5 +1,6 @@
<?php
namespace Dave1010\Traits;
+// Note: use dependency injection instead of the singleton pattern
trait Singleton {
public static function instance() {

0 comments on commit 5d79695

Please sign in to comment.