for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/**
* Created by PhpStorm.
* User: Clayton Daley
* Date: 5/6/2015
* Time: 6:53 PM
*/
namespace ZfcUser\Factory\View\Helper;
use Interop\Container\ContainerInterface;
use Interop\Container\Exception\ContainerException;
use Zend\ServiceManager\Exception\ServiceNotCreatedException;
use Zend\ServiceManager\Exception\ServiceNotFoundException;
use Zend\ServiceManager\Factory\FactoryInterface;
use Zend\ServiceManager\ServiceLocatorInterface;
use ZfcUser\View;
class ZfcUserIdentity implements FactoryInterface
{
public function __invoke(ContainerInterface $container, $requestedName, array $options = null)
$viewHelper = new View\Helper\ZfcUserIdentity;
$viewHelper->setAuthService($container->get('zfcuser_auth_service'));
return $viewHelper;
}