function RestExampleClientController::create
Same name and namespace in other branches
- 3.x modules/rest_example/src/Controller/RestExampleClientController.php \Drupal\rest_example\Controller\RestExampleClientController::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
-
modules/
rest_example/ src/ Controller/ RestExampleClientController.php, line 37
Class
- RestExampleClientController
- Controller routines for rest example routes.
Namespace
Drupal\rest_example\ControllerCode
public static function create(ContainerInterface $container) {
return new static($container->get('rest_example_client_calls'));
}