com\setasign\Konquadrat\Datasource

DatasourceFactory Class DatasourceFactory

File: /Konquadrat/src/Datasource/DatasourceFactory.php

Class hierarchy

Implements

Summary

Properties

$datasourceConfigFinder

$di

$objectDatasourceConfigFactory


Methods

__construct()

DiDatasourceFactory constructor.

Parameters
$di: \com\setasign\SetaFramework\Di\Di
 
$datasourceConfigFinder: DatasourceConfigFinderInterface
 
$objectDatasourceConfigFactory: ObjectDatasourceConfigFactoryInterface
 

buildDatasourceByGridConfig()

buildDatasourceById()

public DatasourceFactory::buildDatasourceById (
int|string $id,
?int $context
): DatasourceInterface
Parameters
$id: int|string
 
$context: ?int
 
Exceptions

Throws \Throwable

buildObjectDatasourceByGridConfig()