Skip to content

Commit

Permalink
ref: search_via_backend => elasticsearch_proxy_api
Browse files Browse the repository at this point in the history
  • Loading branch information
theus77 committed Oct 15, 2023
1 parent 83e5e03 commit 781f961
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ public function getConfigTreeBuilder(): TreeBuilder
->scalarNode('backend_url')->defaultValue(null)->end()
->scalarNode('backend_api_key')->defaultValue(null)->end()
->scalarNode('backend_api_verify')->defaultValue(true)->end()
->scalarNode('search_via_backend')->defaultValue(false)->end()
->scalarNode('elasticsearch_proxy_api')->defaultValue(false)->end()
->scalarNode('elasticsearch_connection_pool')->defaultValue(null)->end()
->variableNode('elasticsearch_hosts')->defaultValue(self::ELASTICSEARCH_DEFAULT_HOSTS)->end()
->integerNode('log_level')->defaultValue(self::LOG_LEVEL)->end()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ public function load(array $configs, ContainerBuilder $container): void
$container->setParameter('ems_common.backend_url', $config['backend_url']);
$container->setParameter('ems_common.backend_api_key', $config['backend_api_key']);
$container->setParameter('ems_common.backend_api_verify', $config['backend_api_verify']);
$container->setParameter('ems_common.search_via_backend', $config['search_via_backend']);
$container->setParameter('ems_common.elasticsearch_proxy_api', $config['elasticsearch_proxy_api']);
$container->setParameter('ems_common.elasticsearch_hosts', $config['elasticsearch_hosts']);
$container->setParameter('ems_common.elasticsearch_connection_pool', $config['elasticsearch_connection_pool']);
$container->setParameter('ems_common.storages', $config['storages']);
Expand Down
2 changes: 1 addition & 1 deletion EMS/common-bundle/src/Resources/config/services.xml
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@
<argument type="service" id="logger" />
<argument type="service" id="ems_common.elastica.client" />
<argument type="service" id="ems.helper.admin_api" />
<argument type="string">%ems_common.search_via_backend%</argument>
<argument type="string">%ems_common.elasticsearch_proxy_api%</argument>
</service>
<service id="ems.helper.admin_api" class="EMS\CommonBundle\Common\Admin\AdminHelper">
<argument type="service" id="ems_common.core_api.factory" />
Expand Down
4 changes: 2 additions & 2 deletions elasticms-web/config/packages/ems_common.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ parameters:
env(EMS_BACKEND_URL): ~
env(EMS_BACKEND_API_KEY): ~
env(EMS_BACKEND_API_VERIFY): true
env(EMS_SEARCH_VIA_BACKEND): false
env(EMS_ELASTICSEARCH_PROXY_API): false

env(EMS_CACHE): 'file_system'
env(EMS_CACHE_PREFIX): ~
Expand All @@ -39,7 +39,7 @@ ems_common:
backend_url: '%env(string:EMS_BACKEND_URL)%'
backend_api_key: '%env(string:EMS_BACKEND_API_KEY)%'
backend_api_verify: '%env(bool:EMS_BACKEND_API_VERIFY)%'
search_via_backend: '%env(bool:EMS_SEARCH_VIA_BACKEND)%'
elasticsearch_proxy_api: '%env(bool:EMS_ELASTICSEARCH_PROXY_API)%'
excluded_content_types: '%env(json:EMS_EXCLUDED_CONTENT_TYPES)%'
webalize:
removable_regex: '%env(string:EMS_WEBALIZE_REMOVABLE_REGEX)%'
Expand Down

0 comments on commit 781f961

Please sign in to comment.