Skip to content

Commit

Permalink
Removing the SessionComponent out of the Controller
Browse files Browse the repository at this point in the history
  • Loading branch information
lorenzo committed May 18, 2014
1 parent 4a355f0 commit d68d5d5
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/Controller/Controller.php
Expand Up @@ -163,7 +163,7 @@ class Controller implements EventListener {
* @var array
* @link http://book.cakephp.org/2.0/en/controllers/components.html
*/
public $components = array('Session');
public $components = array();

/**
* The name of the View class this controller sends output to.
Expand Down
Expand Up @@ -28,6 +28,13 @@ class OrangeSessionTestController extends Controller {
*/
public $uses = array();

/**
* List of components
*
* @var array
*/
public $components = ['Session'];

/**
* session_id method
*
Expand Down
7 changes: 7 additions & 0 deletions tests/test_app/TestApp/Controller/SessionTestController.php
Expand Up @@ -28,6 +28,13 @@ class SessionTestController extends Controller {
*/
public $uses = array();

/**
* List of components
*
* @var array
*/
public $components = ['Session'];

/**
* session_id method
*
Expand Down

0 comments on commit d68d5d5

Please sign in to comment.