Commit ed53caad authored by Bertrand Gauthier's avatar Bertrand Gauthier
Browse files

Merge branch 'zf-3.x' of https://git.unicaen.fr/lib/unicaen/auth into zf-3.x

parents 6356dbd8 de97da3a
Loading
Loading
Loading
Loading
+3 −3
Original line number Diff line number Diff line
@@ -2,15 +2,15 @@

namespace UnicaenAuth\Service;

use Interop\Container\ContainerInterface;
use UnicaenAuth\Options\ModuleOptions;
use Zend\ServiceManager\ServiceLocatorInterface;

class ShibServiceFactory
{
    public function __invoke(ServiceLocatorInterface $sl)
    public function __invoke(ContainerInterface $container)
    {
        /** @var ModuleOptions $moduleOptions */
        $moduleOptions = $sl->get('unicaen-auth_module_options');
        $moduleOptions = $container->get('unicaen-auth_module_options');

        $service = new ShibService();
        $service->setShibbolethConfig($moduleOptions->getShibboleth());