-
-
Notifications
You must be signed in to change notification settings - Fork 877
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
10 changed files
with
60 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -26,10 +26,18 @@ | |
/** | ||
* Serializes data. | ||
* | ||
* @template T1 | ||
* @template T2 | ||
* | ||
* @implements ProcessorInterface<T1, T2> | ||
* | ||
* @author Kévin Dunglas <[email protected]> | ||
*/ | ||
final class SerializeProcessor implements ProcessorInterface | ||
{ | ||
/** | ||
* @param ProcessorInterface<T1, T2> $processor | ||
*/ | ||
public function __construct(private readonly ProcessorInterface $processor, private readonly SerializerInterface $serializer, private readonly SerializerContextBuilderInterface $serializerContextBuilder) | ||
{ | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -21,13 +21,22 @@ | |
/** | ||
* Bridges persistence and the API system. | ||
* | ||
* @template T1 | ||
* @template T2 | ||
* | ||
* @implements ProcessorInterface<T1, T2> | ||
* | ||
* @author Kévin Dunglas <[email protected]> | ||
* @author Baptiste Meyer <[email protected]> | ||
*/ | ||
final class WriteProcessor implements ProcessorInterface | ||
{ | ||
use ClassInfoTrait; | ||
|
||
/** | ||
* @param ProcessorInterface<T1, T2> $processor | ||
* @param ProcessorInterface<T1, T2> $callableProcessor | ||
*/ | ||
public function __construct(private readonly ProcessorInterface $processor, private readonly ProcessorInterface $callableProcessor) | ||
{ | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -19,8 +19,8 @@ | |
/** | ||
* Processes data: sends an email, persists to storage, adds to queue etc. | ||
* | ||
* @template T1 of object | ||
* @template T2 of object | ||
* @template T1 | ||
* @template T2 | ||
* | ||
* @author Antoine Bluchet <[email protected]> | ||
*/ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters