Skip to content
This repository has been archived by the owner on Jul 13, 2021. It is now read-only.

Commit

Permalink
Merge remote-tracking branch 'origin/fix/zf2b5'
Browse files Browse the repository at this point in the history
  • Loading branch information
basz committed Jul 6, 2012
2 parents 42339aa + 773611d commit 707b8ec
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 12 deletions.
7 changes: 2 additions & 5 deletions configs/module.config.php
Original file line number Diff line number Diff line change
Expand Up @@ -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',
),
),
Expand Down
5 changes: 2 additions & 3 deletions src/PhingService/Controller/IndexController.php
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand All @@ -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);

Expand Down
4 changes: 2 additions & 2 deletions src/PhingService/PhingOptions.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
4 changes: 2 additions & 2 deletions src/PhingService/ServiceOptions.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@

namespace PhingService;

use Zend\Stdlib\Options,
use Zend\Stdlib\AbstractOptions,
PhingService\Service;

class ServiceOptions extends Options
class ServiceOptions extends AbstractOptions
{

/**
Expand Down

0 comments on commit 707b8ec

Please sign in to comment.