$translators
$translators : array
Global utils functions Helper Class
$translators : array
getSiteLanguagesSelectOptions(int|null $website_id = null) : array
gets site languages options for selects
int|null | $website_id |
errorPage(int $error_code, \Symfony\Component\HttpFoundation\Request|null $request, \App\Site\Routing\RouteInfo|null $route_info = null, array $template_data = [], string|null $template_name = null) : \Symfony\Component\HttpFoundation\Response
return an error page
int | $error_code | |
\Symfony\Component\HttpFoundation\Request|null | $request | |
\App\Site\Routing\RouteInfo|null | $route_info | |
array | $template_data | |
string|null | $template_name |
exceptionPage(\Throwable $exception, \Symfony\Component\HttpFoundation\Request|null $request, \App\Site\Routing\RouteInfo|null $route_info = null) : \Symfony\Component\HttpFoundation\Response
returns a exception error page
\Throwable | $exception | |
\Symfony\Component\HttpFoundation\Request|null | $request | |
\App\Site\Routing\RouteInfo|null | $route_info |
blockedIpPage(\Symfony\Component\HttpFoundation\Request $request, \App\Site\Routing\RouteInfo|null $route_info = null) : \Symfony\Component\HttpFoundation\Response
returns a blocked ip exception error page
\Symfony\Component\HttpFoundation\Request | $request | |
\App\Site\Routing\RouteInfo|null | $route_info |
exceptionJson(\Exception $exception, \Symfony\Component\HttpFoundation\Request $request) : \Symfony\Component\HttpFoundation\Response
returns an exception error json
\Exception | $exception | |
\Symfony\Component\HttpFoundation\Request | $request |
exceptionXML(\Exception $exception, \Symfony\Component\HttpFoundation\Request $request) : \Symfony\Component\HttpFoundation\Response
returns an exception error xml
\Exception | $exception | |
\Symfony\Component\HttpFoundation\Request | $request |
offlinePage(\Symfony\Component\HttpFoundation\Request|null $request, \App\Site\Routing\RouteInfo|null $route_info = null) : \Symfony\Component\HttpFoundation\Response
returns a "site is offline" error page
\Symfony\Component\HttpFoundation\Request|null | $request | |
\App\Site\Routing\RouteInfo|null | $route_info |
logException(\Throwable $e, string|null $prefix = null, \Symfony\Component\HttpFoundation\Request|null $request = null) : mixed
logs an exception
\Throwable | $e | |
string|null | $prefix | |
\Symfony\Component\HttpFoundation\Request|null | $request |
queueInternalMail(string $from, string $to, string $subject, string $body, string $template_name = 'generic') : \App\Site\Models\QueueMessage
string | $from | |
string | $to | |
string | $subject | |
string | $body | |
string | $template_name |
queueContactFormMail(string $from, string $to, string $subject, string $body) : \App\Site\Models\QueueMessage
string | $from | |
string | $to | |
string | $subject | |
string | $body |
queueLinksFormMail(string $from, string $to, string $subject, string $body) : \App\Site\Models\QueueMessage
string | $from | |
string | $to | |
string | $subject | |
string | $body |
logRequestIfNeeded( $status_code, \Symfony\Component\HttpFoundation\Request $request) : mixed
logs request (if needed)
$status_code | ||
\Symfony\Component\HttpFoundation\Request | $request |
queueMail(string $from, string $to, string $subject, string $body, string $queue_name, string $template_name = 'generic') : \App\Site\Models\QueueMessage
string | $from | |
string | $to | |
string | $subject | |
string | $body | |
string | $queue_name | |
string | $template_name |