Completed
Push — sam-rework ( 1696e6 )
by Andrii
38:13 queued 23:11
created

Factory   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 9
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
wmc 1
eloc 3
dl 0
loc 9
rs 10
c 0
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A create() 0 4 1
1
<?php
2
/**
3
 * @link http://www.yiiframework.com/
4
 * @copyright Copyright (c) 2008 Yii Software LLC
5
 * @license http://www.yiiframework.com/license/
6
 */
7
8
namespace yii\di;
9
10
use yii\di\exceptions\InvalidConfigException;
11
12
class Factory extends Container implements FactoryInterface
13
{
14
    /**
15
     * {@inheritdoc}
16
     */
17
    public function create($config, array $params = [])
18
    {
19
        $definition = Definition::normalize($config);
20
        return $definition->resolve($this);
21
    }
22
}
23