Skip to content

Latest commit

 

History

History
20 lines (14 loc) · 393 Bytes

SerializationServiceProvider.md

File metadata and controls

20 lines (14 loc) · 393 Bytes

SerializationServiceProvider

<?php

use Chubbyphp\Serialization\ServiceProvider\SerializationServiceProvider;
use Pimple\Container;

$container = new Container();
$container->register(new SerializationServiceProvider);

$container['serializer']
    ->serialize(...);

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

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