Initial commit of Session/Authentication code

Plugin architecture with single Database-backed implementation.
This commit is contained in:
2011-12-19 12:13:14 +00:00
parent 5b72a8a206
commit d92cc576d7
16 changed files with 507 additions and 0 deletions

View File

@@ -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;
}