<?php
use Chubbyphp\Deserialization\Mapping\DenormalizationObjectMappingInterface;
use Chubbyphp\Deserialization\ServiceFactory\DenormalizerObjectMappingRegistryFactory;
use Psr\Container\ContainerInterface;
/** @var ContainerInterface $container */
$container = ...;
// $container->get(DenormalizationObjectMappingInterface::class.'[]')
$factory = new DenormalizerObjectMappingRegistryFactory();
$denormalizerObjectMappingRegistry = $factory($container);
<?php
use Chubbyphp\Deserialization\Mapping\DenormalizationObjectMappingInterface;
use Chubbyphp\Deserialization\ServiceFactory\DenormalizerObjectMappingRegistryFactory;
use Psr\Container\ContainerInterface;
/** @var ContainerInterface $container */
$container = ...;
// $container->get(DenormalizationObjectMappingInterface::class.'[]default')
$factory = [DenormalizerObjectMappingRegistryFactory::class, 'default'];
$denormalizerObjectMappingRegistry = $factory($container);