src/EntityManager/EntityManagerFactory.php
public function getDbConnectionInfo(ConfigInterface $config): array
    {
        $dbUser             = $config->get(ConfigInterface::PARAM_DB_USER);
        $dbPass             = $config->get(ConfigInterface::PARAM_DB_PASS);
        $dbHost             = $config->get(ConfigInterface::PARAM_DB_HOST);
        $dbName             = $config->get(ConfigInterface::PARAM_DB_NAME);
        $useRetryConnection = $config->get(ConfigInterface::PARAM_USE_RETRY_CONNECTION);

        $return = [
            'driver'   => 'pdo_mysql',
            'user'     => $dbUser,
            'password' => $dbPass,
            'dbname'   => $dbName,
            'host'     => $dbHost,
            'charset'  => 'utf8mb4',

        ];
        if (true === $useRetryConnection) {
            $return['wrapperClass'] = PingingAndReconnectingConnection::class;
        }

        return $return;
    }
public function getDbConnectionInfo(ConfigInterface $config): array
    {
        $dbUser             = $config->get(ConfigInterface::PARAM_DB_USER);
        $dbPass             = $config->get(ConfigInterface::PARAM_DB_PASS);
        $dbHost             = $config->get(ConfigInterface::PARAM_DB_HOST);
        $dbName             = $config->get(ConfigInterface::PARAM_DB_NAME);
        $useRetryConnection = $config->get(ConfigInterface::PARAM_USE_RETRY_CONNECTION);

        $return = [
            'driver'   => 'pdo_mysql',
            'user'     => $dbUser,
            'password' => $dbPass,
            'dbname'   => $dbName,
            'host'     => $dbHost,
            'charset'  => 'utf8mb4',

        ];
        if (true === $useRetryConnection) {
            $return['wrapperClass'] = PingingAndReconnectingConnection::class;
        }

        return $return;
    }
public function getDbConnectionInfo ( ConfigInterface $ config ) : array { $ dbUser = $ config -> get ( ConfigInterface :: PARAM_DB_USER ) ; $ dbPass = $ config -> get ( ConfigInterface :: PARAM_DB_PASS ) ; $ dbHost = $ config -> get ( ConfigInterface :: PARAM_DB_HOST ) ; $ dbName = $ config -> get ( ConfigInterface :: PARAM_DB_NAME ) ; $ useRetryConnection = $ config -> get ( ConfigInterface :: PARAM_USE_RETRY_CONNECTION ) ; $ return = [ 'driver' => 'pdo_mysql' , 'user' => $ dbUser , 'password' => $ dbPass , 'dbname' => $ dbName , 'host' => $ dbHost , 'charset' => 'utf8mb4' , ] ; if ( true === $ useRetryConnection ) { $ return [ 'wrapperClass' ] = PingingAndReconnectingConnection :: class ; } return $ return ; }
This is used to get the connection information for doctrine. By default this pulls the information out of the
configuration interface, however if you connection information is in a different format you can override this
method and set it

@param ConfigInterface $config

@return array
This is used to get the connection information for doctrine . By default this pulls the information out of the configuration interface however if you connection information is in a different format you can override this method and set it