CasServiceFactory.php 385 Bytes
Newer Older
Bertrand Gauthier's avatar
Bertrand Gauthier committed
1
2
3
4
5
6
7
8
9
10
11
12
13
<?php

namespace UnicaenOAuth\Cas;

use Zend\ServiceManager\FactoryInterface;
use Zend\ServiceManager\ServiceLocatorInterface;

class CasServiceFactory implements FactoryInterface
{
    public function createService(ServiceLocatorInterface $serviceLocator)
    {
        $config = $serviceLocator->get('config');

Bertrand Gauthier's avatar
Bertrand Gauthier committed
14
        return new CasService($config['unicaen-oauth']['cas']);
Bertrand Gauthier's avatar
Bertrand Gauthier committed
15
16
    }
}