mirror of
https://github.com/phpbb/phpbb.git
synced 2025-08-11 19:24:01 +02:00
[ticket/15540] Refactor search backend classes to Symfony services
PHPBB3-15540
This commit is contained in:
@@ -24,6 +24,7 @@ imports:
|
||||
- { resource: services_profilefield.yml }
|
||||
- { resource: services_report.yml }
|
||||
- { resource: services_routing.yml }
|
||||
- { resource: services_search.yml }
|
||||
- { resource: services_storage.yml }
|
||||
- { resource: services_text_formatter.yml }
|
||||
- { resource: services_text_reparser.yml }
|
||||
|
69
phpBB/config/default/container/services_search.yml
Normal file
69
phpBB/config/default/container/services_search.yml
Normal file
@@ -0,0 +1,69 @@
|
||||
services:
|
||||
|
||||
# Search backends
|
||||
search.fulltext.native:
|
||||
class: phpbb\search\backend\fulltext_native
|
||||
arguments:
|
||||
- '@auth'
|
||||
- '@config'
|
||||
- '@dbal.conn'
|
||||
- '@dispatcher'
|
||||
- '@user'
|
||||
- '%core.root_path%'
|
||||
- '%core.php_ext%'
|
||||
tags:
|
||||
- { name: search.backend }
|
||||
|
||||
search.fulltext.mysql:
|
||||
class: phpbb\search\backend\fulltext_mysql
|
||||
arguments:
|
||||
- '@auth'
|
||||
- '@config'
|
||||
- '@dbal.conn'
|
||||
- '@dispatcher'
|
||||
- '@user'
|
||||
- '%core.root_path%'
|
||||
- '%core.php_ext%'
|
||||
tags:
|
||||
- { name: search.backend }
|
||||
|
||||
search.fulltext.postgres:
|
||||
class: phpbb\search\backend\fulltext_postgres
|
||||
arguments:
|
||||
- '@auth'
|
||||
- '@config'
|
||||
- '@dbal.conn'
|
||||
- '@dispatcher'
|
||||
- '@user'
|
||||
- '%core.root_path%'
|
||||
- '%core.php_ext%'
|
||||
tags:
|
||||
- { name: search.backend }
|
||||
|
||||
search.fulltext.sphinx:
|
||||
class: phpbb\search\backend\fulltext_sphinx
|
||||
arguments:
|
||||
- '@auth'
|
||||
- '@config'
|
||||
- '@dbal.conn'
|
||||
- '@dispatcher'
|
||||
- '@user'
|
||||
- '%core.root_path%'
|
||||
- '%core.php_ext%'
|
||||
tags:
|
||||
- { name: search.backend }
|
||||
|
||||
# Factory
|
||||
search.backend_factory:
|
||||
class: phpbb\search\search_backend_factory
|
||||
arguments:
|
||||
- '@config'
|
||||
- '@search.backend_collection'
|
||||
|
||||
# Collections
|
||||
search.backend_collection:
|
||||
class: phpbb\di\service_collection
|
||||
arguments:
|
||||
- '@service_container'
|
||||
tags:
|
||||
- { name: service_collection, tag: search.backend, class_name_aware: true }
|
Reference in New Issue
Block a user