Skip to content
Browse files

Minor refactor to make origin of services more clear

- helpers vs services
- controllers vs services
  • Loading branch information...
1 parent 76dcbd6 commit 38bded4c8cc418ecb2e422c43659c0f06b5e62be @weierophinney committed Sep 18, 2012
Showing with 7 additions and 7 deletions.
  1. +4 −4 src/PhlyPeep/Service/PeepControllerFactory.php
  2. +3 −3 src/PhlyPeep/Service/PeepViewFormFactory.php
View
8 src/PhlyPeep/Service/PeepControllerFactory.php
@@ -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);
View
6 src/PhlyPeep/Service/PeepViewFormFactory.php
@@ -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;

0 comments on commit 38bded4

Please sign in to comment.
Something went wrong with that request. Please try again.