We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6fab291 commit d30fbd7Copy full SHA for d30fbd7
src/Drupal/DrupalAutoloader.php
@@ -225,6 +225,16 @@ public function register(Container $container): void
225
}
226
});
227
228
+ // Handle shorthand syntax for service definition:
229
+ // @code
230
+ // Drupal\foo\FooService: {}
231
+ // Drupal\foo\BarService:
232
+ // tags:
233
+ // - { name: foo_bar }
234
+ // @endcode
235
+ if (!isset($serviceDefinition['class']) && class_exists($serviceId)) {
236
+ $serviceDefinition['class'] = $serviceId;
237
+ }
238
// @todo sanitize "calls" and "configurator" and "factory"
239
/**
240
jsonapi.params.enhancer:
0 commit comments