Skip to main content

Posts

Showing posts from July, 2019

Masa Brooding Ayam

Menambahkan custom connection in symfony 4 (multiple connection)

add ini service.yml app.event.authentication_success_listener : class : App\EventListener\AuthenticationSuccessListener tags : - { name : kernel.event_listener, event : lexik_jwt_authentication.on_authentication_success, method : onAuthenticationSuccessResponse } # abc def ghi # ------------ app.date_normalizer : class : Symfony\Component\Serializer\Normalizer\DateTimeNormalizer arguments : - { 'datetime_format' : 'Y-m-d H:i:s' } and create file doctrine.yml parameters : # Adds a fallback DATABASE_URL if the env var is not set. # This allows you to run cache:warmup even if your # environment variables are not available yet. # You should not need to change this value. env(DATABASE_URL) : '' doctrine : dbal : default_connection : default connections : default : driver : 'pdo_sqlsrv' server_version : '11.0' url : ...