You are here

public static function RestGenerator::create in OpenAPI for REST 8.2

File

src/Plugin/openapi/OpenApiGenerator/RestGenerator.php, line 49

Class

RestGenerator
Defines an OpenApi Schema Generator for the Rest module.

Namespace

Drupal\openapi_rest\Plugin\openapi\OpenApiGenerator

Code

public static function create(ContainerInterface $container, array $configuration, $plugin_id, $plugin_definition) {
  return new static($configuration, $plugin_id, $plugin_definition, $container
    ->get('entity_type.manager'), $container
    ->get('router.route_provider'), $container
    ->get('entity_field.manager'), $container
    ->get('serializer'), $container
    ->get('request_stack'), $container
    ->get('config.factory'), $container
    ->get('authentication_collector'), $container
    ->get('schemata.schema_factory'));
}