Example #1
0
 private final function __construct($DI)
 {
     if (Registry::Exists(get_called_class())) {
         throw new Exception(sprintf('An instance of %s already exists', get_called_class()));
     }
     static::initialize($DI);
 }