diff --git a/lib/Cake/Console/Command/Task/ControllerTask.php b/lib/Cake/Console/Command/Task/ControllerTask.php index 3c1079b8b..c3d889a3c 100644 --- a/lib/Cake/Console/Command/Task/ControllerTask.php +++ b/lib/Cake/Console/Command/Task/ControllerTask.php @@ -184,6 +184,10 @@ class ControllerTask extends BakeTask { $wannaUseSession = $this->in( __d('cake_console', "Would you like to use Session flash messages?"), array('y', 'n'), 'y' ); + + if (strtolower($wannaUseSession) === 'y') { + array_push($components, 'Session'); + } } } else { list($wannaBakeCrud, $wannaBakeAdminCrud) = $this->_askAboutMethods();