mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2025-09-05 11:02:40 +00:00
Making SessionComponent extend Component. Updating test case.
This commit is contained in:
parent
6dbe5b09f8
commit
db1acb461a
2 changed files with 18 additions and 15 deletions
|
@ -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();
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue