AuthorizeServiceFactory.php 867 Bytes
Newer Older
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
<?php
/**
 * BjyAuthorize Module (https://github.com/bjyoungblood/BjyAuthorize)
 *
 * @link https://github.com/bjyoungblood/BjyAuthorize for the canonical source repository
 * @license http://framework.zend.com/license/new-bsd New BSD License
 */

namespace UnicaenAuth\Service;

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

/**
 * Factory responsible of building the {@see \BjyAuthorize\Service\Authorize} service
 *
 * @author Laurent LÉCLUSE <laurent.lecluse at unicaen.fr>
 */
class AuthorizeServiceFactory implements FactoryInterface
{
    /**
     * {@inheritDoc}
     *
     * @return \Application\Service\Authorize
     */
    public function createService(ServiceLocatorInterface $serviceLocator)
    {
        return new AuthorizeService($serviceLocator->get('BjyAuthorize\Config'), $serviceLocator);
    }
}