Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
<?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