instance() static public method

static public instance ( $setInstance = null )
コード例 #1
0
ファイル: authsome.php プロジェクト: rchavik/authsome
 public function initialize($controller, $settings = array())
 {
     Authsome::instance($this);
     $this->settings = Set::merge($this->settings, $settings);
     // Use the model name as the key everywhere by default
     $keys = array('configure', 'session', 'cookie');
     foreach ($keys as $prefix) {
         $key = $prefix . 'Key';
         if (empty($this->settings[$key])) {
             $this->settings[$key] = $this->settings['model'];
         }
     }
 }