Skip to content

Commit

Permalink
IBX-7276: Added deprecation notice for ibexa_user_get_current twig …
Browse files Browse the repository at this point in the history
…function (#65)
  • Loading branch information
mikadamczyk authored Dec 15, 2023
1 parent c8f3c94 commit a93d1c0
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/bundle/Twig/UserExtension.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,11 @@ public function getFunctions(): array
return [
new TwigFunction(
'ibexa_user_get_current',
[UserRuntime::class, 'getCurrentUser']
[UserRuntime::class, 'getCurrentUser'],
[
'deprecated' => '4.6',
'alternative' => 'ibexa_current_user',
]
),
];
}
Expand Down

0 comments on commit a93d1c0

Please sign in to comment.