Merge pull request #4008 from davidyell/patch-3

Update ControllerTask.php
This commit is contained in:
Mark Story 2014-07-18 10:50:39 -04:00
commit 91b4ee8984

View file

@ -188,6 +188,7 @@ class ControllerTask extends BakeTask {
if (strtolower($wannaUseSession) === 'y') { if (strtolower($wannaUseSession) === 'y') {
array_push($components, 'Session'); array_push($components, 'Session');
} }
array_unique($components);
} }
} else { } else {
list($wannaBakeCrud, $wannaBakeAdminCrud) = $this->_askAboutMethods(); list($wannaBakeCrud, $wannaBakeAdminCrud) = $this->_askAboutMethods();