cs Iterator and Registry

This commit is contained in:
Dominik Liebler
2013-09-21 22:17:54 +02:00
parent 4b66417509
commit 9484868299
7 changed files with 118 additions and 160 deletions

View File

@@ -52,9 +52,3 @@ abstract class Registry
// typically there would be methods to check if a key has already been registered and so on ...
}
// while bootstrapping the application
Registry::set(Registry::LOGGER, new \StdClass());
// throughout the application
Registry::get(Registry::LOGGER)->log('foo');

9
Registry/index.php Normal file
View File

@@ -0,0 +1,9 @@
<?php
use DesignPatterns\Registry;
// while bootstrapping the application
Registry::set(Registry::LOGGER, new \StdClass());
// throughout the application
Registry::get(Registry::LOGGER)->log('foo');