Kohana_Auth::__construct PHP 메소드

__construct() 공개 메소드

Loads Session and configuration options.
public __construct ( $config = [] ) : void
리턴 void
    public function __construct($config = array())
    {
        // Clean up the salt pattern and split it into an array
        $config['salt_pattern'] = preg_split('/,\\s*/', Kohana::config('auth')->get('salt_pattern'));
        // Save the config in the object
        $this->_config = $config;
        $this->_session = Session::instance();
    }