src/Factory/DataProviderFactory.php
public function get(string $id): DataProviderInterface
    {
        if (!$this->has($id)) {
            throw new Exception('No data provider with id "'.$id.'" was loaded');
        }

        return $this->dataProviders[$id];
    }
public function get(string $id): DataProviderInterface
    {
        if (!$this->has($id)) {
            throw new Exception('No data provider with id "'.$id.'" was loaded');
        }

        return $this->dataProviders[$id];
    }
public function get ( string $ id ) : DataProviderInterface { if ( ! $ this -> has ( $ id ) ) { throw new Exception ( 'No data provider with id "' . $ id . '" was loaded' ) ; } return $ this -> dataProviders [ $ id ] ; }
Return an configured data provider or try to create one for the given entity class.

@param string $id The id of an existing data provider service
registry

@return DataProviderInterface

@throws Exception
Return an configured data provider or try to create one for the given entity class .