Skip to content

Commit

Permalink
Merge pull request #609 from Eye4web/factory-fix
Browse files Browse the repository at this point in the history
Fix factories returning themselves
  • Loading branch information
Danielss89 committed Dec 12, 2015
2 parents c7aa895 + 44cb298 commit 2277c59
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 4 deletions.
4 changes: 2 additions & 2 deletions Module.php
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ public function getControllerConfig()
{
return array(
'factories' => array(
'zfcuser' => 'ZfcUser\Factory\Controller\UserController',
'zfcuser' => 'ZfcUser\Factory\Controller\UserControllerFactory',
),
);
}
Expand Down Expand Up @@ -73,7 +73,7 @@ public function getServiceConfig()
'zfcuser_register_form_hydrator' => 'Zend\Stdlib\Hydrator\ClassMethods',
),
'factories' => array(
'zfcuser_redirect_callback' => 'ZfcUser\Factory\Controller\RedirectCallback',
'zfcuser_redirect_callback' => 'ZfcUser\Factory\Controller\RedirectCallbackFactory',
'zfcuser_module_options' => 'ZfcUser\Factory\Options\ModuleOptions',
'ZfcUser\Authentication\Adapter\AdapterChain' => 'ZfcUser\Authentication\Adapter\AdapterChainServiceFactory',

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,14 @@
namespace ZfcUser\Factory\Controller;


use Zend\Mvc\Application;
use Zend\Mvc\Router\RouteInterface;
use Zend\ServiceManager\FactoryInterface;
use Zend\ServiceManager\ServiceLocatorInterface;
use ZfcUser\Controller\RedirectCallback;
use ZfcUser\Options\ModuleOptions;

class RedirectCallback implements FactoryInterface
class RedirectCallbackFactory implements FactoryInterface
{
/**
* Create service
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,10 @@
use Zend\Mvc\Controller\ControllerManager;
use Zend\ServiceManager\FactoryInterface;
use Zend\ServiceManager\ServiceLocatorInterface;
use ZfcUser\Controller\RedirectCallback;
use ZfcUser\Controller\UserController;

class UserController implements FactoryInterface
class UserControllerFactory implements FactoryInterface
{

/**
Expand Down

0 comments on commit 2277c59

Please sign in to comment.