mirror of
https://github.com/shlinkio/shlink.git
synced 2024-12-22 23:23:42 -06:00
26 lines
582 B
Plaintext
26 lines
582 B
Plaintext
<?php
|
|
|
|
declare(strict_types=1);
|
|
|
|
use function Shlinkio\Shlink\Common\env;
|
|
|
|
// When running tests, any mysql-specific option can interfere with other drivers
|
|
$driverOptions = env('APP_ENV') === 'test' ? [] : [
|
|
PDO::MYSQL_ATTR_INIT_COMMAND => 'SET NAMES utf8',
|
|
PDO::MYSQL_ATTR_USE_BUFFERED_QUERY => true,
|
|
];
|
|
|
|
return [
|
|
|
|
'entity_manager' => [
|
|
'connection' => [
|
|
'user' => 'root',
|
|
'password' => 'root',
|
|
'driver' => 'pdo_mysql',
|
|
'host' => 'shlink_db',
|
|
'driverOptions' => $driverOptions,
|
|
],
|
|
],
|
|
|
|
];
|