File tree 3 files changed +6
-7
lines changed
src/Bridges/ApplicationDI
3 files changed +6
-7
lines changed Original file line number Diff line number Diff line change @@ -81,15 +81,14 @@ public function beforeCompile()
81
81
$ container = $ this ->getContainerBuilder ();
82
82
$ all = array ();
83
83
84
- foreach ($ container ->findByType ('Nette\Application\IPresenter ' , FALSE ) as $ name ) {
85
- $ def = $ container ->getDefinition ($ name );
86
- $ all [strtolower ($ def ->getClass ())] = $ def ;
84
+ foreach ($ container ->findByType ('Nette\Application\IPresenter ' ) as $ def ) {
85
+ $ all [$ def ->getClass ()] = $ def ;
87
86
}
88
87
89
88
$ counter = 0 ;
90
89
foreach ($ this ->findPresenters () as $ class ) {
91
- if (empty ($ all [$ tmp = strtolower ( $ class) ])) {
92
- $ all [$ tmp ] = $ container ->addDefinition ($ this ->prefix (++$ counter ))->setClass ($ class );
90
+ if (empty ($ all [$ class ])) {
91
+ $ all [$ class ] = $ container ->addDefinition ($ this ->prefix (++$ counter ))->setClass ($ class );
93
92
}
94
93
}
95
94
Original file line number Diff line number Diff line change @@ -67,7 +67,7 @@ public function beforeCompile()
67
67
public function afterCompile (Nette \PhpGenerator \ClassType $ class )
68
68
{
69
69
if (!empty ($ this ->config ['cache ' ])) {
70
- $ method = $ class ->methods [ Nette \DI \Container::getMethodName ($ this ->prefix ('router ' ))] ;
70
+ $ method = $ class ->getMethod ( Nette \DI \Container::getMethodName ($ this ->prefix ('router ' ))) ;
71
71
try {
72
72
$ router = serialize (eval ($ method ->getBody ()));
73
73
} catch (\Exception $ e ) {
Original file line number Diff line number Diff line change @@ -33,7 +33,7 @@ class MicroContainer extends Nette\DI\Container
33
33
34
34
protected $ meta = array (
35
35
'types ' => array (
36
- 'nette \\ bridges \\ applicationlatte \\ ilattefactory ' => array (1 => array ('latte.latteFactory ' )),
36
+ 'Nette \\ Bridges \\ ApplicationLatte \\ ILatteFactory ' => array (1 => array ('latte.latteFactory ' )),
37
37
),
38
38
);
39
39
You can’t perform that action at this time.
0 commit comments