@@ -10,7 +10,7 @@ services:
1010 # Прямой алиас сервис-контейнера Symfony. @service_container - deprecated.
1111 Psr\Container\ContainerInterface : ' @service_container'
1212
13- # Ядро.
13+ # Ядро
1414 Symfony\Component\HttpKernel\KernelInterface : ' @kernel'
1515 Symfony\Component\HttpKernel\Kernel : ' @kernel'
1616
@@ -23,14 +23,44 @@ services:
2323 Symfony\Component\DependencyInjection\ParameterBag\ContainerBagInterface : ' @parameter_bag'
2424 Symfony\Component\DependencyInjection\ParameterBag\ParameterBagInterface : ' @parameter_bag'
2525
26- # Запрос.
26+ # Запрос
2727 app.request :
2828 class : Prokl\ServiceProvider\Services\AppRequest
2929 tags : ['service.bootstrap']
3030
3131 Prokl\ServiceProvider\Services\AppRequest : ' @app.request'
3232 request : ' @app.request'
3333
34+ # Битриксовый Request
35+ bitrix.request.instance :
36+ class : Prokl\ServiceProvider\Services\AppRequest
37+ factory : ['@app.request', 'bitrixRequest']
38+
39+ # Конвертор битриксового Request в симфонический.
40+ bitrix.request.convertor :
41+ public : false
42+ class : Prokl\ServiceProvider\Services\PSR\BitrixRequestConvertor
43+
44+ # Request, импортированный из Битриксового
45+ bitrix.request :
46+ class : Symfony\Component\HttpFoundation\Request
47+ factory : ['@bitrix.request.convertor', 'request']
48+
49+ # Битриксовый Response
50+ bitrix.response.instance :
51+ class : Prokl\ServiceProvider\Services\AppRequest
52+ factory : ['@app.request', 'bitrixResponse']
53+
54+ # Конвертор битриксового Response в симфонический.
55+ bitrix.response.convertor :
56+ public : false
57+ class : Prokl\ServiceProvider\Services\PSR\BitrixResponseConvertor
58+
59+ # Response, импортированный из Битриксового
60+ bitrix.response :
61+ class : Symfony\Component\HttpFoundation\Response
62+ factory : ['@bitrix.response.convertor', 'response']
63+
3464 # Request приложения.
3565 global.request :
3666 class : Symfony\Component\HttpFoundation\Request
0 commit comments