-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #18 from facile-it/allow-symfony-7
Allow Symfony 7
- Loading branch information
Showing
10 changed files
with
130 additions
and
58 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
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 |
---|---|---|
@@ -0,0 +1,38 @@ | ||
<?php | ||
|
||
declare(strict_types=1); | ||
|
||
namespace Facile\MongoDbMessenger\Tests\End2End\App; | ||
|
||
use Symfony\Component\Serializer\Normalizer\CacheableSupportsMethodInterface; | ||
|
||
class SuppressDeprecationNormalizer extends ObjectNormalizerDecorator implements CacheableSupportsMethodInterface | ||
{ | ||
public function hasCacheableSupportsMethod(): bool | ||
{ | ||
return $this->objectNormalizer->hasCacheableSupportsMethod(); | ||
} | ||
|
||
/** | ||
* @param mixed $data Data to restore | ||
* @param string $type | ||
* @param string|null $format | ||
* @param array<string, mixed>&array{ignored_attributes?: string[]} $context | ||
*/ | ||
public function denormalize($data, $type, $format = null, array $context = []) | ||
{ | ||
return parent::doDenormalize($data, $type, $format, $context); // TODO: Change the autogenerated stub | ||
} | ||
|
||
/** | ||
* @param mixed $object | ||
* @param string|null $format | ||
* @param array<string, mixed>&array{ignored_attributes?: string[]} $context | ||
* | ||
* @return array<mixed>|string|int|float|bool|\ArrayObject|null | ||
*/ | ||
public function normalize($object, $format = null, array $context = []) | ||
{ | ||
return $this->doNormalize($object, $format, $context); | ||
} | ||
} |
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 |
---|---|---|
@@ -0,0 +1,45 @@ | ||
<?php | ||
|
||
declare(strict_types=1); | ||
|
||
namespace Facile\MongoDbMessenger\Tests\End2End\App; | ||
|
||
use Symfony\Component\ErrorHandler\Exception\FlattenException; | ||
use Symfony\Component\Messenger\Stamp\RedeliveryStamp; | ||
|
||
class SuppressDeprecationNormalizer extends ObjectNormalizerDecorator | ||
{ | ||
/** | ||
* @return array<string, bool> | ||
*/ | ||
public function getSupportedTypes(?string $format): array | ||
{ | ||
return [ | ||
FlattenException::class => true, | ||
RedeliveryStamp::class => true, | ||
]; | ||
} | ||
|
||
/** | ||
* @param mixed $data Data to restore | ||
* @param string $type | ||
* @param string|null $format | ||
* @param array<string, mixed>&array{ignored_attributes?: string[]} $context | ||
*/ | ||
public function denormalize($data, $type, $format = null, array $context = []): mixed | ||
{ | ||
return parent::doDenormalize($data, $type, $format, $context); // TODO: Change the autogenerated stub | ||
} | ||
|
||
/** | ||
* @param mixed $object | ||
* @param string|null $format | ||
* @param array<string, mixed>&array{ignored_attributes?: string[]} $context | ||
* | ||
* @return array<mixed>|string|int|float|bool|\ArrayObject|null | ||
*/ | ||
public function normalize($object, $format = null, array $context = []): \ArrayObject|array|string|int|float|bool|null | ||
{ | ||
return $this->doNormalize($object, $format, $context); | ||
} | ||
} |