|
|
|
|
|
|
|
|
new TwigFunction('get_form_newsletter', [$this, 'getFormNewsletter']), |
|
|
new TwigFunction('get_form_newsletter', [$this, 'getFormNewsletter']), |
|
|
new TwigFunction('sov_limit_text', [$this, 'limitText']), |
|
|
new TwigFunction('sov_limit_text', [$this, 'limitText']), |
|
|
new TwigFunction('day_by_number', [$this, 'getDayByNumber']), |
|
|
new TwigFunction('day_by_number', [$this, 'getDayByNumber']), |
|
|
|
|
|
new TwigFunction('user_current', [$this, 'getUserCurrent']), |
|
|
]; |
|
|
]; |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
return $this->stringComponent->slugify($string) ; |
|
|
return $this->stringComponent->slugify($string) ; |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
public function getUserCurrent() |
|
|
|
|
|
{ |
|
|
|
|
|
return $this->security->getUser(); |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
} |
|
|
} |