Merge pull request #2770 from ukk1337/master

Added missing 'Session'-Component in bake
This commit is contained in:
Mark Story 2014-02-09 16:04:25 -05:00
commit 7a72431442

View file

@ -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();