Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Minor refactor to make origin of services more clear

- helpers vs services
- controllers vs services
  • Loading branch information...
commit 38bded4c8cc418ecb2e422c43659c0f06b5e62be 1 parent 76dcbd6
@weierophinney authored
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;
Please sign in to comment.
Something went wrong with that request. Please try again.