DependencyInjection/BaseContainerAccessor.php
protected function getObjectManager(string $entityNamespace): ? ObjectManager
    {
        return $this
            ->get('base.object_manager_provider')
            ->getObjectManagerByEntityNamespace(
                $this->locateEntity($entityNamespace)
            );
    }
protected function getObjectManager(string $entityNamespace): ? ObjectManager
    {
        return $this
            ->get('base.object_manager_provider')
            ->getObjectManagerByEntityNamespace(
                $this->locateEntity($entityNamespace)
            );
    }
protected function getObjectManager ( string $ entityNamespace ) : ? ObjectManager { return $ this -> get ( 'base.object_manager_provider' ) -> getObjectManagerByEntityNamespace ( $ this -> locateEntity ( $ entityNamespace ) ) ; }
Get object manager given an entity namespace.

@param string $entityNamespace

@return ObjectManager|null
Get object manager given an entity namespace .