mirror of
https://github.com/netzbegruenung/green-directory-php.git
synced 2024-05-02 11:34:52 +02:00
17 lines
436 B
PHP
17 lines
436 B
PHP
<?php
|
|
|
|
|
|
namespace Netzbegruenung\GreenDirectory;
|
|
|
|
class SerializerFactory
|
|
{
|
|
public static function create() : Serializer
|
|
{
|
|
return new Serializer(\JMS\Serializer\SerializerBuilder::create()
|
|
->setMetadataDirs([
|
|
NETZBEGRUENUNG_GREEN_DIRECTORY_MODELS_SERIALIZER_PREFIX =>
|
|
NETZBEGRUENUNG_GREEN_DIRECTORY_MODELS_SERIALIZER_METADATA
|
|
])
|
|
->build());
|
|
}
|
|
} |