GitHub Access Token became invalid

It seems like the GitHub access token used for retrieving details about this repository from GitHub became invalid. This might prevent certain types of inspections from being run (in particular, everything related to pull requests).
Please ask an admin of your repository to re-new the access token on this website.
Completed
Push — issue-44 ( e14363 )
by Bram
04:40
created

IdGeneratorPluginManagerFactory::createService()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 2
Bugs 0 Features 1
Metric Value
c 2
b 0
f 1
dl 0
loc 4
rs 10
cc 1
eloc 2
nc 1
nop 1
1
<?php
2
/**
3
 * @author Aeneas Rekkas
4
 * @copyright (c) Aeneas Rekkas 2014
5
 * @license http://opensource.org/licenses/mit-license.php
6
 */
7
8
namespace StrokerCache\Factory;
9
10
use Interop\Container\ContainerInterface;
11
use StrokerCache\IdGenerator\IdGeneratorPluginManager;
12
use Zend\ServiceManager\Factory\FactoryInterface;
13
14
class IdGeneratorPluginManagerFactory implements FactoryInterface
15
{
16
    /**
17
     * {@inheritDoc}
18
     */
19
    public function __invoke(ContainerInterface $container, $requestedName, array $options = null)
20
    {
21
        $config      = $container->get('Config');
22
        $pluginManager = new IdGeneratorPluginManager($container, $config['strokercache']['id_generators']['plugin_manager']);
23
        return $pluginManager;
24
    }
25
}
26