33namespace Proklung \Symfony \Router \Utils ;
44
55use Proklung \Symfony \Router \BitrixInitializerRouter ;
6+ use Proklung \Symfony \Router \BitrixRoutes ;
67use Proklung \Symfony \Router \Router ;
7- use Proklung \Symfony \Router \RoutesLoader ;
8+ use Proklung \Symfony \Router \SymfonyRoutes ;
89
910/**
1011 * Class Loader
@@ -96,7 +97,7 @@ public static function from(?string $yamlConfig = null, ?string $cachePath = nul
9697 public function loadRouter (?string $ yamlConfig = null , ?string $ cachePath = null ) : ?Router
9798 {
9899 if ($ yamlConfig && @file_exists ($ _SERVER ['DOCUMENT_ROOT ' ] . $ yamlConfig )) {
99- $ agnosticRouter = new RoutesLoader (
100+ $ agnosticRouter = new SymfonyRoutes (
100101 $ _SERVER ['DOCUMENT_ROOT ' ] . $ yamlConfig ,
101102 $ cachePath ? $ _SERVER ['DOCUMENT_ROOT ' ] . $ cachePath : null ,
102103 (bool )$ _ENV ['DEBUG ' ]
@@ -122,7 +123,7 @@ public function loadRouter(?string $yamlConfig = null, ?string $cachePath = null
122123 public function loadRouterNative (?string $ yamlConfig = null , ?string $ cachePath = null ) : ?BitrixRouteConvertor
123124 {
124125 if ($ yamlConfig && @file_exists ($ _SERVER ['DOCUMENT_ROOT ' ] . $ yamlConfig )) {
125- $ agnosticRouter = new RoutesLoader (
126+ $ agnosticRouter = new BitrixRoutes (
126127 $ _SERVER ['DOCUMENT_ROOT ' ] . $ yamlConfig ,
127128 $ cachePath ? $ _SERVER ['DOCUMENT_ROOT ' ] . $ cachePath : null ,
128129 (bool )$ _ENV ['DEBUG ' ]
0 commit comments