1111
1212namespace Symfony \Bundle \FrameworkBundle \Routing ;
1313
14+ use Psr \Log \LoggerInterface ;
1415use Symfony \Component \Config \Loader \LoaderInterface ;
1516use Symfony \Component \DependencyInjection \Config \ContainerParametersResource ;
1617use Symfony \Component \DependencyInjection \ServiceSubscriberInterface ;
@@ -33,17 +34,19 @@ class Router extends BaseRouter implements WarmableInterface, ServiceSubscriberI
3334 private $ collectedParameters = array ();
3435
3536 /**
36- * @param ContainerInterface $container A ContainerInterface instance
37- * @param mixed $resource The main resource to load
38- * @param array $options An array of options
39- * @param RequestContext $context The context
37+ * @param ContainerInterface $container A ContainerInterface instance
38+ * @param mixed $resource The main resource to load
39+ * @param array $options An array of options
40+ * @param RequestContext $context The context
41+ * @param LoggerInterface|null $logger
4042 */
41- public function __construct (ContainerInterface $ container , $ resource , array $ options = array (), RequestContext $ context = null )
43+ public function __construct (ContainerInterface $ container , $ resource , array $ options = array (), RequestContext $ context = null , LoggerInterface $ logger = null )
4244 {
4345 $ this ->container = $ container ;
4446
4547 $ this ->resource = $ resource ;
4648 $ this ->context = $ context ?: new RequestContext ();
49+ $ this ->logger = $ logger ;
4750 $ this ->setOptions ($ options );
4851 }
4952
0 commit comments