Permalink
Browse files

Removed singleton. It seems that the best option is making the pommo …

…class with all methods and attributes static.
  • Loading branch information...
1 parent aed03a3 commit 72046b3092e78b38dd1b9ca5d052fef52328cdd9 Adrian Ancona Novelo committed Aug 5, 2010
Showing with 318 additions and 277 deletions.
  1. +1 −2 bootstrap.php
  2. +229 −203 classes/Pommo.php
  3. +33 −17 classes/Pommo_Api.php
  4. +37 −35 classes/Pommo_Template.php
  5. +18 −20 index.php
View
@@ -33,6 +33,5 @@
require('classes/Pommo.php');
// Instantiate pommo
-$pommo = Pommo::singleton(dirname(__FILE__).'/');
-$pommo->preinit();
+Pommo::preinit(dirname(__FILE__).'/');
Oops, something went wrong.

0 comments on commit 72046b3

Please sign in to comment.