Skip to content

Commit

Permalink
Document design decisions #35
Browse files Browse the repository at this point in the history
  • Loading branch information
marein committed Oct 6, 2021
1 parent e29b8b1 commit 744738b
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/Common/Normalizer/Normalizer.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,10 @@

use Gaming\Common\Normalizer\Exception\NormalizerException;

/**
* This interface abstracts the library used for normalization so that
* we can exchange it in the future.
*/
interface Normalizer
{
/**
Expand Down
6 changes: 6 additions & 0 deletions src/Common/Port/Adapter/Jms/JmsSerializerFactory.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,12 @@
use JMS\Serializer\Serializer;
use JMS\Serializer\SerializerBuilder;

/**
* This class provides a factory for jms/serializer used in our service container.
* The bundle which integrates jms/serializer with symfony cleanly is currently only
* capable of configuring one serializer for the application. This factory can be used
* to create a jms/serializer for each context with some application-wide defaults.
*/
final class JmsSerializerFactory
{
/**
Expand Down

0 comments on commit 744738b

Please sign in to comment.