mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-06-07 18:44:08 +00:00
Merge branch 'person-docgen-context-with-3party' into 'master'
Feature: [person][docgen] Add a title to document in person docgen See merge request Chill-Projet/chill-bundles!461
This commit is contained in:
commit
307fdfd0ba
@ -42,6 +42,9 @@ class BaseContextData
|
|||||||
$data['createdAt'] = $this->normalizer->normalize(new DateTimeImmutable(), 'docgen', [
|
$data['createdAt'] = $this->normalizer->normalize(new DateTimeImmutable(), 'docgen', [
|
||||||
'docgen:expects' => DateTimeImmutable::class, 'groups' => ['docgen:read'],
|
'docgen:expects' => DateTimeImmutable::class, 'groups' => ['docgen:read'],
|
||||||
]);
|
]);
|
||||||
|
$data['createdAtDate'] = $this->normalizer->normalize(new DateTimeImmutable('today'), 'docgen', [
|
||||||
|
'docgen:expects' => DateTimeImmutable::class, 'groups' => ['docgen:read'],
|
||||||
|
]);
|
||||||
$data['location'] = $this->normalizer->normalize(
|
$data['location'] = $this->normalizer->normalize(
|
||||||
$user instanceof User ? $user->getCurrentLocation() : null,
|
$user instanceof User ? $user->getCurrentLocation() : null,
|
||||||
'docgen',
|
'docgen',
|
||||||
|
Loading…
x
Reference in New Issue
Block a user