<?php
namespace AppBundle\Controller;
use Pimcore\Controller\FrontendController;
use Pimcore\Extension\Document\Areabrick\AreabrickInterface;
use Symfony\Component\HttpFoundation\Request;
interface TemplateAreabrickInterface extends AreabrickInterface {
/**
* For convenience, you can create a new brick by extending
* Pimcore\Extension\Document\Areabrick\AbstractTemplateAreabrick
* to make use of template auto-discovery (thus, needing a minimum
* of code to get started). The template area brick implements the
* TemplateAreabrickInterface which defines the following methods
* you can use to control template auto-discovery. Please make
* sure your brick is defined inside a bundle as otherwise your
* templates can't be auto-discovered.
*/
const TEMPLATE_LOCATION_GLOBAL = 'global';
const TEMPLATE_LOCATION_BUNDLE = 'bundle';
const TEMPLATE_SUFFIX_PHP = 'html.php';
const TEMPLATE_SUFFIX_TWIG = 'html.twig';
/**
* Determines if template should be auto-located in area bundle or in app/Resources
*
* @return string
*/
public function getTemplateLocation();
/**
* Returns view suffix used to auto-build view names
*
* @return string
*/
public function getTemplateSuffix();
}
class DefaultController extends FrontendController {
/**
* @param Request $request
*/
public function DefaultAction( Request $request ) {
}
}