Browse Source

Removing the SessionComponent out of the Controller

Jose Lorenzo Rodriguez 12 years ago
parent
commit
d68d5d5230

+ 1 - 1
src/Controller/Controller.php

@@ -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.

+ 7 - 0
tests/test_app/TestApp/Controller/OrangeSessionTestController.php

@@ -29,6 +29,13 @@ class OrangeSessionTestController extends Controller {
 	public $uses = array();
 
 /**
+ * List of components
+ *
+ * @var array
+ */
+	public $components = ['Session'];
+
+/**
  * session_id method
  *
  * @return void

+ 7 - 0
tests/test_app/TestApp/Controller/SessionTestController.php

@@ -29,6 +29,13 @@ class SessionTestController extends Controller {
 	public $uses = array();
 
 /**
+ * List of components
+ *
+ * @var array
+ */
+	public $components = ['Session'];
+
+/**
  * session_id method
  *
  * @return void