Skip to content

Commit cf0dbe2

Browse files
authored
Merge pull request #204 from wayofdev/feat/updates
2 parents 87a0d1f + c4dfdf8 commit cf0dbe2

File tree

2 files changed

+13
-3
lines changed

2 files changed

+13
-3
lines changed

config/serializer.php

+3-3
Original file line numberDiff line numberDiff line change
@@ -2,15 +2,13 @@
22

33
declare(strict_types=1);
44

5-
use Symfony\Component\Serializer\Mapping\Loader\LoaderInterface;
6-
75
/**
86
* @return array{
97
* default: string,
108
* debug: bool,
119
* normalizerRegistrationStrategy: class-string<WayOfDev\Serializer\Contracts\NormalizerRegistrationStrategy>,
1210
* encoderRegistrationStrategy: class-string<WayOfDev\Serializer\Contracts\EncoderRegistrationStrategy>,
13-
* metadataLoader: class-string<LoaderInterface>|null,
11+
* metadataLoader: class-string<Symfony\Component\Serializer\Mapping\Loader\LoaderInterface>|null,
1412
* }
1513
*/
1614
return [
@@ -59,6 +57,8 @@
5957

6058
/*
6159
* Allows you to register your custom metadata loader.
60+
*
61+
* By default Symfony\Component\Serializer\Mapping\Loader\AttributeLoader is used.
6262
*/
6363
'metadataLoader' => null,
6464
];

src/Bridge/Laravel/Facades/Manager.php

+10
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,17 @@
55
namespace WayOfDev\Serializer\Bridge\Laravel\Facades;
66

77
use Illuminate\Support\Facades\Facade;
8+
use Stringable;
9+
use WayOfDev\Serializer\Contracts\SerializerInterface;
810

11+
/**
12+
* @method static string format()
13+
* @method static SerializerInterface serializer(?string $format = null)
14+
* @method static string serialize(mixed $payload, ?string $format = null, ?array $context = [])
15+
* @method static mixed deserialize(string|Stringable $payload, string|object|null $type = null, ?string $format = null, ?array $context = [])
16+
*
17+
* @see \WayOfDev\Serializer\Manager\SerializerManager
18+
*/
919
class Manager extends Facade
1020
{
1121
protected static function getFacadeAccessor(): string

0 commit comments

Comments
 (0)