Skip to content

Commit

Permalink
Move the services to the services.yml file and use the app. namespace
Browse files Browse the repository at this point in the history
  • Loading branch information
leofeyer committed Jul 8, 2020
1 parent d391d94 commit 45ae7f2
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 13 deletions.
17 changes: 4 additions & 13 deletions manager-bundle/src/Resources/skeleton/config/config.yml
@@ -1,6 +1,7 @@
imports:
- { resource: parameters.yml }
- { resource: security.yml }
- { resource: services.yml }

# Put parameters here that don't need to change on each machine where the app is deployed
# http://symfony.com/doc/current/best_practices/configuration.html#application-related-configuration
Expand Down Expand Up @@ -63,23 +64,13 @@ doctrine:
naming_strategy: doctrine.orm.naming_strategy.default
metadata_cache_driver:
type: service
id: doctrine.system_cache_provider
id: app.doctrine_system_cache_provider
query_cache_driver:
type: service
id: doctrine.system_cache_provider
id: app.doctrine_system_cache_provider
result_cache_driver:
type: service
id: doctrine.result_cache_provider

services:
doctrine.result_cache_provider:
class: Symfony\Component\Cache\DoctrineProvider
arguments:
- '@doctrine.result_cache_pool'
doctrine.system_cache_provider:
class: Symfony\Component\Cache\DoctrineProvider
arguments:
- '@doctrine.system_cache_pool'
id: app.doctrine_result_cache_provider

# Lexik configuration
lexik_maintenance:
Expand Down
10 changes: 10 additions & 0 deletions manager-bundle/src/Resources/skeleton/config/services.yml
@@ -0,0 +1,10 @@
services:
app.doctrine_result_cache_provider:
class: Symfony\Component\Cache\DoctrineProvider
arguments:
- '@doctrine.result_cache_pool'

app.doctrine_system_cache_provider:
class: Symfony\Component\Cache\DoctrineProvider
arguments:
- '@doctrine.system_cache_pool'

0 comments on commit 45ae7f2

Please sign in to comment.