Neos.Media/Classes/Domain/Service/AssetService.php
public function getRepository(AssetInterface $asset)
    {
        $assetRepositoryClassName = str_replace('\\Model\\', '\\Repository\\', get_class($asset)) . 'Repository';

        if (class_exists($assetRepositoryClassName)) {
            return $this->objectManager->get($assetRepositoryClassName);
        }

        return $this->objectManager->get(AssetRepository::class);
    }
public function getRepository(AssetInterface $asset)
    {
        $assetRepositoryClassName = str_replace('\\Model\\', '\\Repository\\', get_class($asset)) . 'Repository';

        if (class_exists($assetRepositoryClassName)) {
            return $this->objectManager->get($assetRepositoryClassName);
        }

        return $this->objectManager->get(AssetRepository::class);
    }
public function getRepository ( AssetInterface $ asset ) { $ assetRepositoryClassName = str_replace ( '\\Model\\' , '\\Repository\\' , get_class ( $ asset ) ) . 'Repository' ; if ( class_exists ( $ assetRepositoryClassName ) ) { return $ this -> objectManager -> get ( $ assetRepositoryClassName ) ; } return $ this -> objectManager -> get ( AssetRepository :: class ) ; }
Returns the repository for an asset

@param AssetInterface $asset
@return RepositoryInterface
@api
Returns the repository for an asset