From 7a3678913003eb0355d19cd59214f98d782f5fa2 Mon Sep 17 00:00:00 2001 From: Damian Mooyman Date: Tue, 26 Apr 2016 11:56:37 +1200 Subject: [PATCH] Cleanup PHPDoc and use injector for AddToCampaignHandler --- code/controllers/CMSMain.php | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/code/controllers/CMSMain.php b/code/controllers/CMSMain.php index c39db003..2d304e71 100644 --- a/code/controllers/CMSMain.php +++ b/code/controllers/CMSMain.php @@ -1,4 +1,6 @@ getResponseNegotiator()->respond($this->getRequest()); } + /** + * Action handler for adding pages to a campaign + * + * @param array $data + * @param Form $form + * @return DBHTMLText|SS_HTTPResponse + */ public function addtocampaign($data, $form) { - $handler = new AddToCampaignHandler($form, $data); + $handler = AddToCampaignHandler::create($form, $data); return $handler->handle(); }