1
0
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:
Ruben Calvo
2018-11-07 06:21:46 +00:00
committed by rubencm
parent 271d6d3169
commit 2aabf560b4
36 changed files with 567 additions and 522 deletions

View File

@@ -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 }

View 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 }