Making SessionComponent extend Component. Updating test case.

This commit is contained in:
mark_story 2010-07-31 15:34:27 -04:00
parent 6dbe5b09f8
commit db1acb461a
2 changed files with 18 additions and 15 deletions

View file

@ -31,14 +31,16 @@ if (!class_exists('cakesession')) {
* @link http://book.cakephp.org/view/1310/Sessions
*
*/
class SessionComponent extends Object {
class SessionComponent extends Component {
/**
* Constructor
* Constructor automatically starts the session.
*
* @return void
* @param ComponentCollection $collection A ComponentCollection this component can use to lazy load its components
* @param array $settings Array of configuration settings.
*/
public function __construct() {
public function __construct(ComponentCollection $collection, $settings = array()) {
parent::__construct($collection, $settings);
CakeSession::start();
}