|
|
@@ -85,6 +85,7 @@ class TwigExtension extends AbstractExtension |
|
|
|
new TwigFunction('get_form_newsletter', [$this, 'getFormNewsletter']), |
|
|
|
new TwigFunction('sov_limit_text', [$this, 'limitText']), |
|
|
|
new TwigFunction('day_by_number', [$this, 'getDayByNumber']), |
|
|
|
new TwigFunction('user_current', [$this, 'getUserCurrent']), |
|
|
|
]; |
|
|
|
} |
|
|
|
|
|
|
@@ -185,4 +186,9 @@ class TwigExtension extends AbstractExtension |
|
|
|
return $this->stringComponent->slugify($string) ; |
|
|
|
} |
|
|
|
|
|
|
|
public function getUserCurrent() |
|
|
|
{ |
|
|
|
return $this->security->getUser(); |
|
|
|
} |
|
|
|
|
|
|
|
} |