<?php
use Chubbyphp\Deserialization\ServiceFactory\DenormalizerFactory;
use Psr\Container\ContainerInterface;
/** @var ContainerInterface $container */
$container = ...;
$factory = new DenormalizerFactory();
$denormalizer = $factory($container);
<?php
use Chubbyphp\Deserialization\ServiceFactory\DenormalizerFactory;
use Psr\Container\ContainerInterface;
/** @var ContainerInterface $container */
$container = ...;
$factory = [DenormalizerFactory::class, 'default'];
$denormalizer = $factory($container);