-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Expand file tree
/
Copy pathmooc_services.yaml
More file actions
25 lines (22 loc) · 798 Bytes
/
mooc_services.yaml
File metadata and controls
25 lines (22 loc) · 798 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
services:
# Databases
Doctrine\ORM\EntityManager:
factory: [ CodelyTv\Mooc\Shared\Infrastructure\Doctrine\MoocEntityManagerFactory, create ]
arguments:
- driver: '%env(MOOC_DATABASE_DRIVER)%'
host: '%env(MOOC_DATABASE_HOST)%'
port: '%env(MOOC_DATABASE_PORT)%'
dbname: '%env(MOOC_DATABASE_NAME)%'
user: '%env(MOOC_DATABASE_USER)%'
password: '%env(MOOC_DATABASE_PASSWORD)%'
- '%env(APP_ENV)%'
tags:
- { name: codely.database_connection }
public: true
monolog:
handlers:
actions_log:
type: info
path: "%kernel.logs_dir%/%kernel.environment%_actions.log"
# Courses
CodelyTv\Mooc\Courses\Domain\CourseRepository: '@CodelyTv\Mooc\Courses\Infrastructure\Persistence\DoctrineCourseRepository'