Skip to content

Commit

Permalink
Merge pull request #204 from wayofdev/feat/updates
Browse files Browse the repository at this point in the history
  • Loading branch information
lotyp authored Jun 19, 2024
2 parents 87a0d1f + c4dfdf8 commit cf0dbe2
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 3 deletions.
6 changes: 3 additions & 3 deletions config/serializer.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,13 @@

declare(strict_types=1);

use Symfony\Component\Serializer\Mapping\Loader\LoaderInterface;

/**
* @return array{
* default: string,
* debug: bool,
* normalizerRegistrationStrategy: class-string<WayOfDev\Serializer\Contracts\NormalizerRegistrationStrategy>,
* encoderRegistrationStrategy: class-string<WayOfDev\Serializer\Contracts\EncoderRegistrationStrategy>,
* metadataLoader: class-string<LoaderInterface>|null,
* metadataLoader: class-string<Symfony\Component\Serializer\Mapping\Loader\LoaderInterface>|null,
* }
*/
return [
Expand Down Expand Up @@ -59,6 +57,8 @@

/*
* Allows you to register your custom metadata loader.
*
* By default Symfony\Component\Serializer\Mapping\Loader\AttributeLoader is used.
*/
'metadataLoader' => null,
];
10 changes: 10 additions & 0 deletions src/Bridge/Laravel/Facades/Manager.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,17 @@
namespace WayOfDev\Serializer\Bridge\Laravel\Facades;

use Illuminate\Support\Facades\Facade;
use Stringable;
use WayOfDev\Serializer\Contracts\SerializerInterface;

/**
* @method static string format()
* @method static SerializerInterface serializer(?string $format = null)
* @method static string serialize(mixed $payload, ?string $format = null, ?array $context = [])
* @method static mixed deserialize(string|Stringable $payload, string|object|null $type = null, ?string $format = null, ?array $context = [])
*
* @see \WayOfDev\Serializer\Manager\SerializerManager
*/
class Manager extends Facade
{
protected static function getFacadeAccessor(): string
Expand Down

0 comments on commit cf0dbe2

Please sign in to comment.