1C-Bitrix 25.700.0
Загрузка...
Поиск...
Не найдено
.settings.php
См. документацию.
1<?php
2return [
3 'controllers' => [
4 'value' => [
5 'defaultNamespace' => '\\Bitrix\\Rest\\Controller',
6 'restIntegration' => [
7 'enabled' => true,
8 'hideModuleScope' => true,
9 'scopes' => [
10 'appform',
11 'configuration.import',
12 'user',
13 ],
14 ],
15 ],
16 'readonly' => true
17 ],
18 'services' => [
19 'value' => [
20 'rest.service.apauth.password' => [
21 'className' => \Bitrix\Rest\Service\APAuth\PasswordService::class,
22 ],
23 'rest.service.apauth.permission' => [
24 'className' => \Bitrix\Rest\Service\APAuth\PermissionService::class,
25 ],
26 'rest.service.app' => [
27 'constructor' => function () {
28 return new \Bitrix\Rest\Service\AppService(
29 new \Bitrix\Rest\Repository\AppRepository(
30 new Bitrix\Rest\Model\Mapper\App()
31 )
32 );
33 },
34 ],
35 'rest.service.integration' => [
36 'constructor' => function () {
37 return new \Bitrix\Rest\Service\IntegrationService(
38 new \Bitrix\Rest\Repository\IntegrationRepository(
39 new Bitrix\Rest\Model\Mapper\Integration()
40 )
41 );
42 },
43 ],
44 'rest.repository.app' => [
45 'constructor' => static function () {
46 return new \Bitrix\Rest\Repository\AppRepository(
47 new \Bitrix\Rest\Model\Mapper\App()
48 );
49 },
50 ],
51 'rest.repository.integration' => [
52 'constructor' => static function () {
53 return new \Bitrix\Rest\Repository\IntegrationRepository(
54 new \Bitrix\Rest\Model\Mapper\Integration()
55 );
56 },
57 ],
58 ],
59 'readonly' => true,
60 ]
61];