src/EntityManager/EntityManagerFactory.php
public function getDoctrineConfig(ConfigInterface $config): Configuration
    {
        $isDevMode = (bool)$config->get(ConfigInterface::PARAM_DEVMODE);
        $proxyDir  = $config->get(ConfigInterface::PARAM_DOCTRINE_PROXY_DIR);
        $cache     = $isDevMode ? null : $this->cache;

        return Tools\Setup::createConfiguration($isDevMode, $proxyDir, $cache);
    }
public function getDoctrineConfig(ConfigInterface $config): Configuration
    {
        $isDevMode = (bool)$config->get(ConfigInterface::PARAM_DEVMODE);
        $proxyDir  = $config->get(ConfigInterface::PARAM_DOCTRINE_PROXY_DIR);
        $cache     = $isDevMode ? null : $this->cache;

        return Tools\Setup::createConfiguration($isDevMode, $proxyDir, $cache);
    }
public function getDoctrineConfig ( ConfigInterface $ config ) : Configuration { $ isDevMode = ( bool ) $ config -> get ( ConfigInterface :: PARAM_DEVMODE ) ; $ proxyDir = $ config -> get ( ConfigInterface :: PARAM_DOCTRINE_PROXY_DIR ) ; $ cache = $ isDevMode ? null : $ this -> cache ; return Tools \ Setup :: createConfiguration ( $ isDevMode , $ proxyDir , $ cache ) ; }
This is used to get the doctrine configuration object. By default this creates a new instance, however if you
already have an object configured you can override this method and inject it

@param ConfigInterface $config

@return Configuration
@SuppressWarnings(PHPMD.StaticAccess)
This is used to get the doctrine configuration object . By default this creates a new instance however if you already have an object configured you can override this method and inject it