Skip to content

Commit

Permalink
Minor refactor to make origin of services more clear
Browse files Browse the repository at this point in the history
- helpers vs services
- controllers vs services
  • Loading branch information
weierophinney committed Sep 18, 2012
1 parent 76dcbd6 commit 38bded4
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
8 changes: 4 additions & 4 deletions src/PhlyPeep/Service/PeepControllerFactory.php
Expand Up @@ -8,11 +8,11 @@

class PeepControllerFactory implements FactoryInterface
{
public function createService(ServiceLocatorInterface $services)
public function createService(ServiceLocatorInterface $controllers)
{
$allServices = $services->getServiceLocator();
$authService = $allServices->get('zfcuser_auth_service');
$peepService = $allServices->get('phly-peep-service');
$services = $controllers->getServiceLocator();
$authService = $services->get('zfcuser_auth_service');
$peepService = $services->get('phly-peep-service');
$controller = new PeepController();
$controller->setAuthService($authService);
$controller->setPeepService($peepService);
Expand Down
6 changes: 3 additions & 3 deletions src/PhlyPeep/Service/PeepViewFormFactory.php
Expand Up @@ -8,10 +8,10 @@

class PeepViewFormFactory implements FactoryInterface
{
public function createService(ServiceLocatorInterface $services)
public function createService(ServiceLocatorInterface $helpers)
{
$allServices = $services->getServiceLocator();
$authService = $allServices->get('zfcuser_auth_service');
$services = $helpers->getServiceLocator();
$authService = $services->get('zfcuser_auth_service');
$helper = new PeepForm();
$helper->setAuthService($authService);
return $helper;
Expand Down

0 comments on commit 38bded4

Please sign in to comment.