Permalink
Browse files

Added getServiceLocator for RC1

  • Loading branch information...
1 parent be34220 commit ab452ed6c0c95b666bbb378c096bea41fb07abed @RWOverdijk RWOverdijk committed Aug 1, 2012
Showing with 4 additions and 3 deletions.
  1. +4 −3 src/PhlyContact/Service/ContactControllerFactory.php
@@ -11,9 +11,10 @@ class ContactControllerFactory implements FactoryInterface
{
public function createService(ServiceLocatorInterface $services)
{
- $form = $services->get('PhlyContactForm');
- $message = $services->get('PhlyContactMailMessage');
- $transport = $services->get('PhlyContactMailTransport');
+ $serviceLocator = $services->getServiceLocator();
+ $form = $serviceLocator->get('PhlyContactForm');
+ $message = $serviceLocator->get('PhlyContactMailMessage');
+ $transport = $serviceLocator->get('PhlyContactMailTransport');
$controller = new ContactController();
$controller->setContactForm($form);

0 comments on commit ab452ed

Please sign in to comment.