function EntryPoint::create
Instantiates a new instance of the implementing class using autowiring.
Parameters
\Symfony\Component\DependencyInjection\ContainerInterface $container: The service container this instance should use.
Return value
static
Overrides AutowireTrait::create
File
-
core/
modules/ jsonapi/ src/ Controller/ EntryPoint.php, line 61
Class
- EntryPoint
- Controller for the API entry point.
Namespace
Drupal\jsonapi\ControllerCode
public static function create(ContainerInterface $container) {
return new static($container->get('jsonapi.resource_type.repository'), $container->get('current_user'));
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.