diff --git a/configs/module.config.php b/configs/module.config.php index 4353866..47ba61d 100644 --- a/configs/module.config.php +++ b/configs/module.config.php @@ -7,11 +7,8 @@ ), 'PhingService.phingOptions' => array( ), - 'controller' => array( - // Map of controller "name" to class - // This should be used if you do not need to inject any dependencies - // in your controller - 'classes' => array( + 'controllers' => array( + 'invokables' => array( 'phingservice.index' => 'PhingService\Controller\IndexController', ), ), diff --git a/src/PhingService/Controller/IndexController.php b/src/PhingService/Controller/IndexController.php index 8159895..c73ce58 100644 --- a/src/PhingService/Controller/IndexController.php +++ b/src/PhingService/Controller/IndexController.php @@ -2,10 +2,10 @@ namespace PhingService\Controller; -use Zend\Mvc\Controller\ActionController, +use Zend\Mvc\Controller\AbstractActionController, Zend\View\Model\ViewModel; -class IndexController extends ActionController +class IndexController extends AbstractActionController { public function indexAction() @@ -14,7 +14,6 @@ public function indexAction() $buildResult = $this->getServiceLocator()->get('PhingService')->build('show-defaults dist' /* target */, $options); -// print_r($this->getServiceLocator()->get('ViewManager')); $view = new ViewModel($buildResult); $view->setTerminal(true); diff --git a/src/PhingService/PhingOptions.php b/src/PhingService/PhingOptions.php index c03caa7..bb01190 100644 --- a/src/PhingService/PhingOptions.php +++ b/src/PhingService/PhingOptions.php @@ -2,10 +2,10 @@ namespace PhingService; -use Zend\Stdlib\Options; +use Zend\Stdlib\AbstractOptions; use Zend\Stdlib\Parameters; -class PhingOptions extends Options +class PhingOptions extends AbstractOptions { protected $buildFile = null; diff --git a/src/PhingService/ServiceOptions.php b/src/PhingService/ServiceOptions.php index b164063..72ff63a 100644 --- a/src/PhingService/ServiceOptions.php +++ b/src/PhingService/ServiceOptions.php @@ -2,10 +2,10 @@ namespace PhingService; -use Zend\Stdlib\Options, +use Zend\Stdlib\AbstractOptions, PhingService\Service; -class ServiceOptions extends Options +class ServiceOptions extends AbstractOptions { /**