public function JsonapiResourceController::__construct in JSON:API Resources 8
JsonapiResourceController constructor.
Parameters
\Drupal\Core\DependencyInjection\ClassResolverInterface $class_resolver: A class resolver to load the appropriate JSON:API resource for the matched route.
\Symfony\Component\HttpKernel\Controller\ArgumentResolverInterface $argument_resolver: An argument resolver for resolving the arguments to the loaded JSON:API resource.
File
- src/
Unstable/ Controller/ JsonapiResourceController.php, line 46
Class
- JsonapiResourceController
- An interstitial controller between raw requests & JSON:API resource objects.
Namespace
Drupal\jsonapi_resources\Unstable\ControllerCode
public function __construct(ClassResolverInterface $class_resolver, ArgumentResolverInterface $argument_resolver) {
$this->classResolver = $class_resolver;
$this->argumentResolver = $argument_resolver;
}