Neos.Media/Classes/Domain/Service/AssetService.php
protected function getUsageStrategies()
    {
        if (is_array($this->usageStrategies)) {
            return $this->usageStrategies;
        }

        $this->usageStrategies = [];
        $assetUsageStrategyImplementations = $this->reflectionService->getAllImplementationClassNamesForInterface(AssetUsageStrategyInterface::class);
        foreach ($assetUsageStrategyImplementations as $assetUsageStrategyImplementationClassName) {
            $this->usageStrategies[] = $this->objectManager->get($assetUsageStrategyImplementationClassName);
        }

        return $this->usageStrategies;
    }
protected function getUsageStrategies()
    {
        if (is_array($this->usageStrategies)) {
            return $this->usageStrategies;
        }

        $this->usageStrategies = [];
        $assetUsageStrategyImplementations = $this->reflectionService->getAllImplementationClassNamesForInterface(AssetUsageStrategyInterface::class);
        foreach ($assetUsageStrategyImplementations as $assetUsageStrategyImplementationClassName) {
            $this->usageStrategies[] = $this->objectManager->get($assetUsageStrategyImplementationClassName);
        }

        return $this->usageStrategies;
    }
protected function getUsageStrategies ( ) { if ( is_array ( $ this -> usageStrategies ) ) { return $ this -> usageStrategies ; } $ this -> usageStrategies = [ ] ; $ assetUsageStrategyImplementations = $ this -> reflectionService -> getAllImplementationClassNamesForInterface ( AssetUsageStrategyInterface :: class ) ; foreach ( $ assetUsageStrategyImplementations as $ assetUsageStrategyImplementationClassName ) { $ this -> usageStrategies [ ] = $ this -> objectManager -> get ( $ assetUsageStrategyImplementationClassName ) ; } return $ this -> usageStrategies ; }
Returns all registered asset usage strategies

@return array<\Neos\Media\Domain\Strategy\AssetUsageStrategyInterface>
@throws \Neos\Flow\ObjectManagement\Exception\UnknownObjectException
Returns all registered asset usage strategies