/** * * Post-construction tasks to complete object construction. * * @return void * */ protected function _postConstruct() { if (!self::$_session) { self::$_session = Solar::factory('Solar_Session', array('class' => 'Solar_Csrf')); } if (!self::$_request) { self::$_request = Solar_Registry::get('request'); } // ignore construct-time configuration for the key, but honor // it from the config file. we want the key name to be the // same everywhere all the time. $key = Solar_Config::get('Solar_Csrf', 'key'); if ($key) { self::$_key = $key; } }