mirror of
https://github.com/phpbb/phpbb.git
synced 2025-09-03 05:12:37 +02:00
[ticket/15287] Add services
PHPBB3-15287
This commit is contained in:
41
phpBB/config/default/container/services_storage.yml
Normal file
41
phpBB/config/default/container/services_storage.yml
Normal file
@@ -0,0 +1,41 @@
|
||||
services:
|
||||
# Factory
|
||||
storage.adapter.factory:
|
||||
class: phpbb\storage\adapter_factory
|
||||
arguments:
|
||||
- '@config'
|
||||
- '@service_container'
|
||||
- '@storage.adapter_collection'
|
||||
- '@storage.provider_collection'
|
||||
|
||||
# Collections
|
||||
storage.adapter_collection:
|
||||
class: phpbb\di\service_collection
|
||||
arguments:
|
||||
- '@service_container'
|
||||
tags:
|
||||
- { name: service_collection, tag: storage.adapter, class_name_aware: true }
|
||||
|
||||
storage.provider_collection:
|
||||
class: phpbb\di\service_collection
|
||||
arguments:
|
||||
- '@service_container'
|
||||
tags:
|
||||
- { name: service_collection, tag: storage.provider, class_name_aware: true }
|
||||
|
||||
# Adapters
|
||||
storage.adapter.local:
|
||||
class: phpbb\storage\adapter\local
|
||||
shared: false
|
||||
arguments:
|
||||
- '@filesystem'
|
||||
- '%core.root_path%'
|
||||
tags:
|
||||
- { name: storage.adapter }
|
||||
|
||||
# Providers
|
||||
storage.provider.local:
|
||||
class: phpbb\storage\provider\local
|
||||
arguments:
|
||||
tags:
|
||||
- { name: storage.provider }
|
Reference in New Issue
Block a user