Skip to content

Instantly share code, notes, and snippets.

@giopetris
Created March 16, 2015 17:39
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save giopetris/14f6f01cf538225b630e to your computer and use it in GitHub Desktop.
<?php
namespace Application\Controller;
use Zend\Mvc\Controller\AbstractActionController;
class ParametrizacaoItemController extends AbstractActionController
{
public function indexAction()
{
die('Index');
}
}
<?php
namespace Application\Controller\Factory;
use Application\Controller\ParametrizacaoItemController;
use Zend\ServiceManager\FactoryInterface;
use Zend\ServiceManager\ServiceLocatorInterface;
class ParametrizacaoItemControllerFactory implements FactoryInterface
{
/**
* {@inheritDoc}
*/
public function createService(ServiceLocatorInterface $serviceLocator)
{
return new ParametrizacaoItemController();
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment