Completed
Pull Request — develop (#456)
by ANTHONIUS
12:28
created

ConfigFactory::createService()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 4
Ratio 100 %

Importance

Changes 0
Metric Value
dl 4
loc 4
rs 10
c 0
b 0
f 0
cc 1
eloc 2
nc 1
nop 1
1
<?php
2
3
namespace Core\Controller\Plugin;
4
5
use Interop\Container\ContainerInterface;
6
use Zend\ServiceManager\Factory\FactoryInterface;
7
8
/**
9
 * Create new Config plugin
10
 *
11
 * @package Core\Controller\Plugin
12
 * @author Anthonius Munthi <[email protected]>
13
 */
14
class ConfigFactory implements FactoryInterface
15
{
16
	public function __invoke( ContainerInterface $container, $requestedName, array $options = null )
17
	{
18
		$config = $container->get('Config');
19
		$plugin = new Config($config);
20
		
21
		return $plugin;
22
	}
23
}
24