Esempio n. 1
0
    protected function startSession()
    {
    }
    public function dispatch()
    {
        if ($this->config->dispatcher != null) {
            $this->config->dispatcher->dispatch();
        }
    }
    //	use this version of run() for local tab functionality --db
    //		public function run($dispatch)
    //		{
    //			$this->startSession();
    //			$this->initialize();
    //
    //			if($dispatch == true)
    //			{
    //				$this->dispatch();
    //			}
    //		}
    public function run($dispatch = true)
    {
        $this->initialize();
        if ($dispatch) {
            $this->startSession();
            $this->dispatch();
        }
    }
}
\Midori\Registry::set("boot", new Boot());
Esempio n. 2
0
 public function __construct($configuration)
 {
     $this->_configuration = $configuration;
     $this->init();
     Registry::set("Midori/config", $this->_configuration);
 }