/** * Creates an instance of \Auth\View\Helper\Auth * * - Injects the AuthenticationService * * @param ServiceLocatorInterface $serviceLocator * @return AssertionManager * @see \Zend\ServiceManager\FactoryInterface::createService() */ public function createService(ServiceLocatorInterface $serviceLocator) { $configArray = $serviceLocator->get('Config'); $configArray = isset($configArray['acl']['assertions']) ? $configArray['acl']['assertions'] : array(); $config = new Config($configArray); $manager = new AssertionManager($config); $manager->setShareByDefault(false); return $manager; }