Projekt

Obecné

Profil

« Předchozí | Další » 

Revize 55098dbb

Přidáno uživatelem Tomáš Ballák před asi 4 roky(ů)

  • ID 55098dbb88feff1302dfdabf4c1c162a2f8444f2
  • Rodič fa91b0c1

Re #7857

Zobrazit rozdíly:

website/config/services.yaml
4 4
# Put parameters here that don't need to change on each machine where the app is deployed
5 5
# https://symfony.com/doc/current/best_practices/configuration.html#application-related-configuration
6 6
parameters:
7
    databaseConnectionString: 'mongodb://root:root@database'
7 8

  
8 9
services:
9 10
    # default configuration for services in *this* file
10 11
    _defaults:
11 12
        autowire: true      # Automatically injects dependencies in your services.
12 13
        autoconfigure: true # Automatically registers your services as commands, event subscribers, etc.
14
        bind:
15
            $connectionString: '%databaseConnectionString%'
13 16

  
14 17
    # makes classes in src/ available to be used as services
15 18
    # this creates a service per class whose id is the fully-qualified class name
......
25 28

  
26 29
    # add more service definitions when explicit configuration is needed
27 30
    # please note that last definitions always *replace* previous ones
31

  
32
    App\OpenData\OpenDataManager: ~      
33
    App\OpenData\IOpenDataManager: '@App\OpenData\OpenDataManager'

Také k dispozici: Unified diff