|
@@ 61-80 (lines=20) @@
|
| 58 |
|
/** |
| 59 |
|
* @inheritdoc |
| 60 |
|
*/ |
| 61 |
|
public static function index( |
| 62 |
|
array $routeParams, |
| 63 |
|
ContainerInterface $container, |
| 64 |
|
ServerRequestInterface $request |
| 65 |
|
): ResponseInterface { |
| 66 |
|
static::assertClassValueDefined(static::API_CLASS); |
| 67 |
|
static::assertClassValueDefined(static::SCHEMA_CLASS); |
| 68 |
|
static::assertClassValueDefined(static::ON_INDEX_QUERY_VALIDATION_RULES_CLASS); |
| 69 |
|
|
| 70 |
|
return static::defaultIndexHandler( |
| 71 |
|
$request->getQueryParams(), |
| 72 |
|
$request->getUri(), |
| 73 |
|
static::defaultCreateQueryParser($container, static::ON_INDEX_QUERY_VALIDATION_RULES_CLASS), |
| 74 |
|
static::defaultCreateParameterMapper($container, static::SCHEMA_CLASS), |
| 75 |
|
static::defaultCreateApi($container, static::API_CLASS), |
| 76 |
|
$container->get(SettingsProviderInterface::class), |
| 77 |
|
$container->get(JsonSchemasInterface::class), |
| 78 |
|
$container->get(EncoderInterface::class) |
| 79 |
|
); |
| 80 |
|
} |
| 81 |
|
|
| 82 |
|
/** |
| 83 |
|
* @inheritdoc |
|
@@ 114-134 (lines=21) @@
|
| 111 |
|
/** |
| 112 |
|
* @inheritdoc |
| 113 |
|
*/ |
| 114 |
|
public static function read( |
| 115 |
|
array $routeParams, |
| 116 |
|
ContainerInterface $container, |
| 117 |
|
ServerRequestInterface $request |
| 118 |
|
): ResponseInterface { |
| 119 |
|
static::assertClassValueDefined(static::API_CLASS); |
| 120 |
|
static::assertClassValueDefined(static::SCHEMA_CLASS); |
| 121 |
|
static::assertClassValueDefined(static::ON_READ_QUERY_VALIDATION_RULES_CLASS); |
| 122 |
|
|
| 123 |
|
return static::defaultReadHandler( |
| 124 |
|
$routeParams[static::ROUTE_KEY_INDEX], |
| 125 |
|
$request->getQueryParams(), |
| 126 |
|
$request->getUri(), |
| 127 |
|
static::defaultCreateQueryParser($container, static::ON_READ_QUERY_VALIDATION_RULES_CLASS), |
| 128 |
|
static::defaultCreateParameterMapper($container, static::SCHEMA_CLASS), |
| 129 |
|
static::defaultCreateApi($container, static::API_CLASS), |
| 130 |
|
$container->get(SettingsProviderInterface::class), |
| 131 |
|
$container->get(JsonSchemasInterface::class), |
| 132 |
|
$container->get(EncoderInterface::class) |
| 133 |
|
); |
| 134 |
|
} |
| 135 |
|
|
| 136 |
|
/** |
| 137 |
|
* @inheritdoc |