Skip to content

Latest commit

 

History

History
20 lines (14 loc) · 424 Bytes

SerializationServiceFactory.md

File metadata and controls

20 lines (14 loc) · 424 Bytes

SerializationServiceFactory

<?php

use Chubbyphp\Serialization\ServiceFactory\SerializationServiceFactory;
use Chubbyphp\Container\Container;

$container = new Container();
$container->factories((new SerializationServiceFactory())());

$container->get('serializer')
    ->serialize(...);

$container->get('serializer.normalizer')
    ->normalize(...);

$container->get('serializer.encoder')
    ->encode(...);