DependencyInjection/Compiler/DomainPass.php
private function getResolveTargets(ContainerBuilder $container)
    {
        if (null === $this->resolveTargets) {
            $this->resolveTargets = [];

            if ($container->hasDefinition('doctrine.orm.listeners.resolve_target_entity')) {
                $def = $container->getDefinition('doctrine.orm.listeners.resolve_target_entity');

                foreach ($def->getMethodCalls() as $call) {
                    if ('addResolveTargetEntity' === $call[0]) {
                        $this->resolveTargets[$call[1][0]] = $call[1][1];
                    }
                }
            }
        }

        return $this->resolveTargets;
    }
private function getResolveTargets(ContainerBuilder $container)
    {
        if (null === $this->resolveTargets) {
            $this->resolveTargets = [];

            if ($container->hasDefinition('doctrine.orm.listeners.resolve_target_entity')) {
                $def = $container->getDefinition('doctrine.orm.listeners.resolve_target_entity');

                foreach ($def->getMethodCalls() as $call) {
                    if ('addResolveTargetEntity' === $call[0]) {
                        $this->resolveTargets[$call[1][0]] = $call[1][1];
                    }
                }
            }
        }

        return $this->resolveTargets;
    }
private function getResolveTargets ( ContainerBuilder $ container ) { if ( null === $ this -> resolveTargets ) { $ this -> resolveTargets = [ ] ; if ( $ container -> hasDefinition ( 'doctrine.orm.listeners.resolve_target_entity' ) ) { $ def = $ container -> getDefinition ( 'doctrine.orm.listeners.resolve_target_entity' ) ; foreach ( $ def -> getMethodCalls ( ) as $ call ) { if ( 'addResolveTargetEntity' === $ call [ 0 ] ) { $ this -> resolveTargets [ $ call [ 1 ] [ 0 ] ] = $ call [ 1 ] [ 1 ] ; } } } } return $ this -> resolveTargets ; }
Get the resolve target classes.

@param ContainerBuilder $container The container

@return array
Get the resolve target classes .