Neos.Neos/Classes/Service/Controller/DataSourceController.php
public static function getDataSources($objectManager)
    {
        $reflectionService = $objectManager->get(ReflectionService::class);

        $dataSources = [];
        $dataSourceClassNames = $reflectionService->getAllImplementationClassNamesForInterface(DataSourceInterface::class);
        /** @var $dataSourceClassName DataSourceInterface */
        foreach ($dataSourceClassNames as $dataSourceClassName) {
            $identifier = $dataSourceClassName::getIdentifier();
            if (isset($dataSources[$identifier])) {
                throw new NeosException(sprintf('Data source with identifier "%s" is already defined in class %s.', $identifier, $dataSourceClassName), 1414088185);
            }
            $dataSources[$identifier] = $dataSourceClassName;
        }

        return $dataSources;
    }
public static function getDataSources($objectManager)
    {
        $reflectionService = $objectManager->get(ReflectionService::class);

        $dataSources = [];
        $dataSourceClassNames = $reflectionService->getAllImplementationClassNamesForInterface(DataSourceInterface::class);
        /** @var $dataSourceClassName DataSourceInterface */
        foreach ($dataSourceClassNames as $dataSourceClassName) {
            $identifier = $dataSourceClassName::getIdentifier();
            if (isset($dataSources[$identifier])) {
                throw new NeosException(sprintf('Data source with identifier "%s" is already defined in class %s.', $identifier, $dataSourceClassName), 1414088185);
            }
            $dataSources[$identifier] = $dataSourceClassName;
        }

        return $dataSources;
    }
public static function getDataSources ( $ objectManager ) { $ reflectionService = $ objectManager -> get ( ReflectionService :: class ) ; $ dataSources = [ ] ; $ dataSourceClassNames = $ reflectionService -> getAllImplementationClassNamesForInterface ( DataSourceInterface :: class ) ; /** @var $dataSourceClassName DataSourceInterface */ foreach ( $ dataSourceClassNames as $ dataSourceClassName ) { $ identifier = $ dataSourceClassName :: getIdentifier ( ) ; if ( isset ( $ dataSources [ $ identifier ] ) ) { throw new NeosException ( sprintf ( 'Data source with identifier "%s" is already defined in class %s.' , $ identifier , $ dataSourceClassName ) , 1414088185 ) ; } $ dataSources [ $ identifier ] = $ dataSourceClassName ; } return $ dataSources ; }
Get available data source implementations

@param ObjectManagerInterface $objectManager
@return array Data source class names indexed by identifier
@Flow\CompileStatic
@throws NeosException
Get available data source implementations