src/ServiceProvider/DoctrineOrmServiceProvider.php
private function getOrmMappingDriverFactorySimpleYaml(Container $container): callable
    {
        return $container->protect(function (array $mapping, Configuration $config) {
            return new SimplifiedYamlDriver(
                [$mapping['path'] => $mapping['namespace']],
                $mapping['extension'] ?? SimplifiedYamlDriver::DEFAULT_FILE_EXTENSION
            );
        });
    }
private function getOrmMappingDriverFactorySimpleYaml(Container $container): callable
    {
        return $container->protect(function (array $mapping, Configuration $config) {
            return new SimplifiedYamlDriver(
                [$mapping['path'] => $mapping['namespace']],
                $mapping['extension'] ?? SimplifiedYamlDriver::DEFAULT_FILE_EXTENSION
            );
        });
    }
private function getOrmMappingDriverFactorySimpleYaml ( Container $ container ) : callable { return $ container -> protect ( function ( array $ mapping , Configuration $ config ) { return new SimplifiedYamlDriver ( [ $ mapping [ 'path' ] => $ mapping [ 'namespace' ] ] , $ mapping [ 'extension' ] ?? SimplifiedYamlDriver :: DEFAULT_FILE_EXTENSION ) ; } ) ; }
@param Container $container

@return callable
@param Container $container