We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 90f1f44 + 19529c2 commit 869966eCopy full SHA for 869966e
src/ServiceFactory/SlimServiceFactory.php
@@ -47,12 +47,12 @@ public function __invoke(ServicesBuilder $builder): iterable {
47
yield self::INPUT_DENORMALIZER => get(DenormalizerInterface::class);
48
49
yield ControllerInvoker::class => static function (ContainerInterface $container) {
50
- $serializer = $container->get(self::INPUT_DENORMALIZER);
+ $serializer = $container->get(SlimServiceFactory::INPUT_DENORMALIZER);
51
if (false === $serializer instanceof DenormalizerInterface) {
52
throw new RuntimeException(
53
sprintf(
54
'Service registered under %s key is expected to implement %s interface, %s given',
55
- self::INPUT_DENORMALIZER,
+ SlimServiceFactory::INPUT_DENORMALIZER,
56
DenormalizerInterface::class,
57
get_debug_type($serializer),
58
),
0 commit comments