LayoutController

Namespace

IO\Controllers

Extends
Properties
Type Name Description

Application

$app

Twig

$twig

Dispatcher

$event

CategoryRepositoryContract

$categoryRepo

CategoryMap

$categoryMap

CategoryService

$categoryService

Used by concrete controllers to set the current category

UrlService

$urlService

bool

$debug

string

$pluginNamespace

Methods
public __construct($app, $twig, $event, $categoryRepo, $categoryMap, $categoryService)

LayoutController constructor.

Parameters

Type

Name

Description

Application

$app

Twig

$twig

Dispatcher

$event

CategoryRepositoryContract

$categoryRepo

CategoryMap

$categoryMap

CategoryService

$categoryService

public abort($code, $message):string

Abort handling current route and pass request to the plentymarkets system

Parameters

Type

Name

Description

int

$code

string

$message

public buildTemplateContainer($templateEvent, $controllerData = []):TemplateContainer
Parameters

Type

Name

Description

string

$templateEvent

mixed

$controllerData

public renderTemplate($templateEvent, $controllerData = [], $cacheContent = true):string

Emit an event to layout plugin to receive twig-template to use for current request.

Parameters

Type

Name

Description

string

$templateEvent

mixed

$controllerData

bool

$cacheContent

public renderTemplateContainer($templateContainer, $controllerData):string
Parameters

Type

Name

Description

TemplateContainer

$templateContainer

mixed

$controllerData

public notFound(): Response

Return a NOT_FOUND response

public checkForExistingCategory($url = null)
Parameters

Type

Name

Description

``

$url