DependencyInjection/DoctrineMongoDBExtension.php
private function normalizeDriverOptions(array $connection)
    {
        $driverOptions            = $connection['driverOptions'] ?? [];
        $driverOptions['typeMap'] = DocumentManager::CLIENT_TYPEMAP;

        if (isset($driverOptions['context'])) {
            $driverOptions['context'] = new Reference($driverOptions['context']);
        }

        return $driverOptions;
    }
private function normalizeDriverOptions(array $connection)
    {
        $driverOptions            = $connection['driverOptions'] ?? [];
        $driverOptions['typeMap'] = DocumentManager::CLIENT_TYPEMAP;

        if (isset($driverOptions['context'])) {
            $driverOptions['context'] = new Reference($driverOptions['context']);
        }

        return $driverOptions;
    }
private function normalizeDriverOptions ( array $ connection ) { $ driverOptions = $ connection [ 'driverOptions' ] ?? [ ] ; $ driverOptions [ 'typeMap' ] = DocumentManager :: CLIENT_TYPEMAP ; if ( isset ( $ driverOptions [ 'context' ] ) ) { $ driverOptions [ 'context' ] = new Reference ( $ driverOptions [ 'context' ] ) ; } return $ driverOptions ; }
Normalizes the driver options array

@param array $connection

@return array|null
Normalizes the driver options array