<?php
namespace App\Controller;
use Pimcore\Controller\FrontendController;
use Pimcore\Model\Asset;
use Symfony\Component\HttpFoundation\Request;
use Sensio\Bundle\FrameworkExtraBundle\Configuration\Template;
use Symfony\Component\Routing\Annotation\Route;
class DefaultController extends FrontendController
{
/**
* @Template
* @param Request $request
* @return array
*/
public function defaultAction(): array
{
return [];
}
public function GetLogo() {
$logo = \Pimcore\Model\WebsiteSetting::getByName('web_logo');
$asset = Asset::getByPath($logo->getData());
return $asset;
}
public function MailAction(Request $request) {
return $this->render('mail/workflow.html.twig');
}
}