@@ -40,12 +40,8 @@ class Router implements RouterInterface, RequestMatcherInterface
40
40
protected UrlMatcherInterface |RequestMatcherInterface $ matcher ;
41
41
protected UrlGeneratorInterface $ generator ;
42
42
protected RequestContext $ context ;
43
- protected LoaderInterface $ loader ;
44
43
protected RouteCollection $ collection ;
45
- protected mixed $ resource ;
46
44
protected array $ options = [];
47
- protected ?LoggerInterface $ logger ;
48
- protected ?string $ defaultLocale ;
49
45
50
46
private ConfigCacheFactoryInterface $ configCacheFactory ;
51
47
@@ -56,14 +52,16 @@ class Router implements RouterInterface, RequestMatcherInterface
56
52
57
53
private static ?array $ cache = [];
58
54
59
- public function __construct (LoaderInterface $ loader , mixed $ resource , array $ options = [], ?RequestContext $ context = null , ?LoggerInterface $ logger = null , ?string $ defaultLocale = null )
60
- {
61
- $ this ->loader = $ loader ;
62
- $ this ->resource = $ resource ;
63
- $ this ->logger = $ logger ;
55
+ public function __construct (
56
+ protected LoaderInterface $ loader ,
57
+ protected mixed $ resource ,
58
+ array $ options = [],
59
+ ?RequestContext $ context = null ,
60
+ protected ?LoggerInterface $ logger = null ,
61
+ protected ?string $ defaultLocale = null ,
62
+ ) {
64
63
$ this ->context = $ context ?? new RequestContext ();
65
64
$ this ->setOptions ($ options );
66
- $ this ->defaultLocale = $ defaultLocale ;
67
65
}
68
66
69
67
/**
0 commit comments