/** @var Template[] $templates */
$templates =
$repository->
findAll();
$result =
[];
foreach ($templates as $template) { $data =
[ 'id' =>
$template->
getId(),
'name' =>
$template->
getName(),
'template' =>
$template->
getTemplate(),
];
$data =
$this->
get(Service::
class)->
translateTheme( $template,
$data );
$result[] =
$data;
} $this->
View()->
assign(['success' => true, 'data' =>
$result]);
} public function getCurrenciesAction() {