src/Sulu/Bundle/PersistenceBundle/PersistenceBundleTrait.php
public function buildPersistence(array $interfaces, ContainerBuilder $container)
    {
        if (!empty($interfaces)) {
            $container->addCompilerPass(
                new ResolveTargetEntitiesPass($interfaces)
            );
        }
    }
public function buildPersistence(array $interfaces, ContainerBuilder $container)
    {
        if (!empty($interfaces)) {
            $container->addCompilerPass(
                new ResolveTargetEntitiesPass($interfaces)
            );
        }
    }
public function buildPersistence ( array $ interfaces , ContainerBuilder $ container ) { if ( ! empty ( $ interfaces ) ) { $ container -> addCompilerPass ( new ResolveTargetEntitiesPass ( $ interfaces ) ) ; } }
Build persistence adds a `ResolveTargetEntitiesPass` for the given interfaces.

@param array $interfaces Target entities resolver configuration.
Mapping interfaces to a concrete implementation
@param ContainerBuilder $container
Build persistence adds a ResolveTargetEntitiesPass for the given interfaces .