Initial commit of Session/Authentication code
Plugin architecture with single Database-backed implementation.
This commit is contained in:
@@ -17,6 +17,8 @@ class SihnonFramework_Main {
|
||||
protected $database;
|
||||
protected $log;
|
||||
protected $cache;
|
||||
protected $session;
|
||||
protected $auth;
|
||||
|
||||
protected $base_uri;
|
||||
|
||||
@@ -38,6 +40,9 @@ class SihnonFramework_Main {
|
||||
$this->log = new Sihnon_Log($this->config);
|
||||
|
||||
$this->cache = new Sihnon_Cache($this->config);
|
||||
|
||||
$this->session = new Sihnon_Session($this->config);
|
||||
$this->auth = new Sihnon_Auth($this->config, $this->session);
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -86,6 +91,22 @@ class SihnonFramework_Main {
|
||||
return $this->cache;
|
||||
}
|
||||
|
||||
/**
|
||||
*
|
||||
* @return SihnonFramework_Session
|
||||
*/
|
||||
public function session() {
|
||||
return $this->session;
|
||||
}
|
||||
|
||||
/**
|
||||
*
|
||||
* @return SihnonFramework_Auth
|
||||
*/
|
||||
public function auth() {
|
||||
return $this->auth;
|
||||
}
|
||||
|
||||
public function baseUri() {
|
||||
return $this->base_uri;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user