3
3
namespace Proklung \Symfony \Router \Utils ;
4
4
5
5
use Proklung \Symfony \Router \BitrixInitializerRouter ;
6
+ use Proklung \Symfony \Router \BitrixRoutes ;
6
7
use Proklung \Symfony \Router \Router ;
7
- use Proklung \Symfony \Router \RoutesLoader ;
8
+ use Proklung \Symfony \Router \SymfonyRoutes ;
8
9
9
10
/**
10
11
* Class Loader
@@ -96,7 +97,7 @@ public static function from(?string $yamlConfig = null, ?string $cachePath = nul
96
97
public function loadRouter (?string $ yamlConfig = null , ?string $ cachePath = null ) : ?Router
97
98
{
98
99
if ($ yamlConfig && @file_exists ($ _SERVER ['DOCUMENT_ROOT ' ] . $ yamlConfig )) {
99
- $ agnosticRouter = new RoutesLoader (
100
+ $ agnosticRouter = new SymfonyRoutes (
100
101
$ _SERVER ['DOCUMENT_ROOT ' ] . $ yamlConfig ,
101
102
$ cachePath ? $ _SERVER ['DOCUMENT_ROOT ' ] . $ cachePath : null ,
102
103
(bool )$ _ENV ['DEBUG ' ]
@@ -122,7 +123,7 @@ public function loadRouter(?string $yamlConfig = null, ?string $cachePath = null
122
123
public function loadRouterNative (?string $ yamlConfig = null , ?string $ cachePath = null ) : ?BitrixRouteConvertor
123
124
{
124
125
if ($ yamlConfig && @file_exists ($ _SERVER ['DOCUMENT_ROOT ' ] . $ yamlConfig )) {
125
- $ agnosticRouter = new RoutesLoader (
126
+ $ agnosticRouter = new BitrixRoutes (
126
127
$ _SERVER ['DOCUMENT_ROOT ' ] . $ yamlConfig ,
127
128
$ cachePath ? $ _SERVER ['DOCUMENT_ROOT ' ] . $ cachePath : null ,
128
129
(bool )$ _ENV ['DEBUG ' ]
0 commit comments