1 |
579f9cdd
|
Tomáš Ballák
|
# This file is the entry point to configure your own services.
|
2 |
|
|
# Files in the packages/ subdirectory configure your dependencies.
|
3 |
|
|
|
4 |
|
|
# Put parameters here that don't need to change on each machine where the app is deployed
|
5 |
|
|
# https://symfony.com/doc/current/best_practices/configuration.html#application-related-configuration
|
6 |
|
|
parameters:
|
7 |
3fc08f2d
|
vastja
|
databaseConnectionString: 'mongodb://root:root@database'
|
8 |
579f9cdd
|
Tomáš Ballák
|
|
9 |
|
|
services:
|
10 |
|
|
# default configuration for services in *this* file
|
11 |
|
|
_defaults:
|
12 |
|
|
autowire: true # Automatically injects dependencies in your services.
|
13 |
|
|
autoconfigure: true # Automatically registers your services as commands, event subscribers, etc.
|
14 |
3fc08f2d
|
vastja
|
bind:
|
15 |
|
|
$connectionString: '%databaseConnectionString%'
|
16 |
579f9cdd
|
Tomáš Ballák
|
|
17 |
|
|
# makes classes in src/ available to be used as services
|
18 |
|
|
# this creates a service per class whose id is the fully-qualified class name
|
19 |
|
|
App\:
|
20 |
|
|
resource: '../src/*'
|
21 |
|
|
exclude: '../src/{DependencyInjection,Entity,Migrations,Tests,Kernel.php}'
|
22 |
|
|
|
23 |
|
|
# controllers are imported separately to make sure services can be injected
|
24 |
|
|
# as action arguments even if you don't extend any base controller class
|
25 |
|
|
App\Controller\:
|
26 |
|
|
resource: '../src/Controller'
|
27 |
|
|
tags: ['controller.service_arguments']
|
28 |
|
|
|
29 |
|
|
# add more service definitions when explicit configuration is needed
|
30 |
|
|
# please note that last definitions always *replace* previous ones
|
31 |
3fc08f2d
|
vastja
|
|
32 |
ea92a5e5
|
vastja
|
App\Repository\OpenDataManager:
|
33 |
|
|
arguments:
|
34 |
|
|
$connectionString: '%env(resolve:DATABASE_CONNECTION_STRING)%'
|
35 |
|
|
App\Repository\IOpenDataManager:
|
36 |
|
|
alias: 'App\Repository\OpenDataManager'
|
37 |
|
|
public: true
|
38 |
2f227a6c
|
ballakt
|
App\Form\DataSetType: ~
|