@@ 41-54 (lines=14) @@ | ||
38 | * @param Cache $cache |
|
39 | * @param array $annotations |
|
40 | */ |
|
41 | public function __construct(FactoryInterface $factory, |
|
42 | DIInvokerInterface $diInvoker, |
|
43 | Cache $cache, |
|
44 | array $annotations = null) |
|
45 | { |
|
46 | if($annotations){ |
|
47 | parent::__construct($annotations, $cache); |
|
48 | }else{ |
|
49 | parent::__construct(self::$DEFAULT_ANNOTATIONS, $cache); |
|
50 | } |
|
51 | ||
52 | $this->factory = $factory; |
|
53 | $this->diInvoker = $diInvoker; |
|
54 | } |
|
55 | /** |
|
56 | * load from class with local cache |
|
57 | * @param string $className |
@@ 31-44 (lines=14) @@ | ||
28 | * |
|
29 | * @param array $annotations |
|
30 | */ |
|
31 | public function __construct(FactoryInterface $factory, |
|
32 | DIInvokerInterface $diInvoker, |
|
33 | Cache $cache, |
|
34 | array $annotations = null |
|
35 | ) |
|
36 | { |
|
37 | if($annotations){ |
|
38 | parent::__construct($annotations, $cache); |
|
39 | }else{ |
|
40 | parent::__construct(self::$DEFAULT_ANNOTATIONS, $cache); |
|
41 | } |
|
42 | $this->factory = $factory; |
|
43 | $this->diInvoker = $diInvoker; |
|
44 | } |
|
45 | /** |
|
46 | * load from class with local cache |
|
47 | * @param string $className |
@@ 40-53 (lines=14) @@ | ||
37 | */ |
|
38 | private $diInvoker; |
|
39 | ||
40 | public function __construct(FactoryInterface $factory, |
|
41 | DIInvokerInterface $diInvoker, |
|
42 | Cache $cache, |
|
43 | array $annotations = null |
|
44 | ) |
|
45 | { |
|
46 | if($annotations){ |
|
47 | parent::__construct($annotations, $cache); |
|
48 | }else{ |
|
49 | parent::__construct(self::$DEFAULT_ANNOTATIONS, $cache); |
|
50 | } |
|
51 | $this->factory = $factory; |
|
52 | $this->diInvoker = $diInvoker; |
|
53 | } |
|
54 | ||
55 | /** |
|
56 | * @param string $className |