Exemplo n.º 1
0
 /**
  * Constructs the class.<br />
  * As a singleton, this method is protected, to defend from external creating.
  */
 protected function __construct()
 {
     // This class shouldn't depend on any other, so there is no need for any updating process (replacing this file
     //by a newer version should just work directly
     self::$instance = $this;
     // We construct the classes that need to be built at the beginning
     $this->__get('session');
     $this->__get('site');
 }