Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitc9dc94b

Browse files
committed
Merge branch '7.2' into 7.3
* 7.2: Minor fix Update custom_normalizer.rst
2 parentsc10ae18 +77632c6 commitc9dc94b

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

‎serializer/custom_normalizer.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -36,13 +36,13 @@ normalization process::
3636
) {
3737
}
3838

39-
public function normalize($topic, ?string $format = null, array $context = []): array
39+
public function normalize(mixed $object, ?string $format = null, array $context = []): array
4040
{
41-
$data = $this->normalizer->normalize($topic, $format, $context);
41+
$data = $this->normalizer->normalize($object, $format, $context);
4242

4343
// Here, add, edit, or delete some data:
4444
$data['href']['self'] = $this->router->generate('topic_show', [
45-
'id' => $topic->getId(),
45+
'id' => $object->getId(),
4646
], UrlGeneratorInterface::ABSOLUTE_URL);
4747

4848
return $data;

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp