@@ -24,19 +24,19 @@ class Route extends Nette\Routing\Route implements Nette\Routing\Router
2424
2525 private const UiMeta = [
2626 'module ' => [
27- self ::PATTERN => '[a-z][a-z0-9.-]* ' ,
28- self ::FILTER_IN => [self ::class, 'path2presenter ' ],
29- self ::FILTER_OUT => [self ::class, 'presenter2path ' ],
27+ self ::Pattern => '[a-z][a-z0-9.-]* ' ,
28+ self ::FilterIn => [self ::class, 'path2presenter ' ],
29+ self ::FilterOut => [self ::class, 'presenter2path ' ],
3030 ],
3131 'presenter ' => [
32- self ::PATTERN => '[a-z][a-z0-9.-]* ' ,
33- self ::FILTER_IN => [self ::class, 'path2presenter ' ],
34- self ::FILTER_OUT => [self ::class, 'presenter2path ' ],
32+ self ::Pattern => '[a-z][a-z0-9.-]* ' ,
33+ self ::FilterIn => [self ::class, 'path2presenter ' ],
34+ self ::FilterOut => [self ::class, 'presenter2path ' ],
3535 ],
3636 'action ' => [
37- self ::PATTERN => '[a-z][a-z0-9-]* ' ,
38- self ::FILTER_IN => [self ::class, 'path2action ' ],
39- self ::FILTER_OUT => [self ::class, 'action2path ' ],
37+ self ::Pattern => '[a-z][a-z0-9-]* ' ,
38+ self ::FilterIn => [self ::class, 'path2action ' ],
39+ self ::FilterOut => [self ::class, 'action2path ' ],
4040 ],
4141 ];
4242
@@ -104,12 +104,12 @@ public function constructUrl(array $params, Nette\Http\UrlScript $refUrl): ?stri
104104 if (isset ($ metadata [self ::ModuleKey])) { // try split into module and [submodule:]presenter parts
105105 $ presenter = $ params [self ::PresenterKey];
106106 $ module = $ metadata [self ::ModuleKey];
107- $ a = isset ($ module ['fixity ' ], $ module [self ::VALUE ])
108- && strncmp ($ presenter , $ module [self ::VALUE ] . ': ' , strlen ($ module [self ::VALUE ]) + 1 ) === 0
109- ? strlen ($ module [self ::VALUE ])
107+ $ a = isset ($ module ['fixity ' ], $ module [self ::Value ])
108+ && strncmp ($ presenter , $ module [self ::Value ] . ': ' , strlen ($ module [self ::Value ]) + 1 ) === 0
109+ ? strlen ($ module [self ::Value ])
110110 : strrpos ($ presenter , ': ' );
111111 if ($ a === false ) {
112- $ params [self ::ModuleKey] = isset ($ module [self ::VALUE ]) ? '' : null ;
112+ $ params [self ::ModuleKey] = isset ($ module [self ::Value ]) ? '' : null ;
113113 } else {
114114 $ params [self ::ModuleKey] = substr ($ presenter , 0 , $ a );
115115 $ params [self ::PresenterKey] = substr ($ presenter , $ a + 1 );
0 commit comments