public function getDataSource($name)
    {
        if (false === $this->hasDataSource($name)) {
            throw new \RuntimeException(sprintf('Data source: "%s" not found.', $name));
        }

        return $this->dataSources[$name];
    }
public function getDataSource($name)
    {
        if (false === $this->hasDataSource($name)) {
            throw new \RuntimeException(sprintf('Data source: "%s" not found.', $name));
        }

        return $this->dataSources[$name];
    }
public function getDataSource ( $ name ) { if ( false === $ this -> hasDataSource ( $ name ) ) { throw new \ RuntimeException ( sprintf ( 'Data source: "%s" not found.' , $ name ) ) ; } return $ this -> dataSources [ $ name ] ; }
Gets a data source.

@return \Yosymfony\Spress\Core\DataSource\AbstractDataSource

@throws \RuntimeException If data source not found
Gets a data source .