\Charcoal\Cms\RouteSectionRoute

Section Route Handler

Summary

Methods
Properties
Constants
__construct()
pathResolvable()
__invoke()
No public properties found
No constants found
loadSectionFromPath()
No protected properties found
N/A
No private methods found
$path
$section
$objType
N/A

Properties

$path

$path : string

URI path.

Type

string

$section

$section : \Charcoal\Cms\SectionInterface|\Charcoal\Object\RoutableInterface

The section object matching the URI path.

Type

\Charcoal\Cms\SectionInterface|\Charcoal\Object\RoutableInterface

$objType

$objType : string

The section model.

Type

string

Methods

__construct()

__construct(array  $data) 

Parameters

array $data

Class depdendencies.

pathResolvable()

pathResolvable(\Pimple\Container  $container) : boolean

Determine if the URI path resolves to an object.

Parameters

\Pimple\Container $container

A DI (Pimple) container.

Returns

boolean

__invoke()

__invoke(\Pimple\Container  $container, \Psr\Http\Message\RequestInterface  $request, \Psr\Http\Message\ResponseInterface  $response) : \Psr\Http\Message\ResponseInterface

Parameters

\Pimple\Container $container

A DI (Pimple) container.

\Psr\Http\Message\RequestInterface $request

A PSR-7 compatible Request instance.

\Psr\Http\Message\ResponseInterface $response

A PSR-7 compatible Response instance.

Returns

\Psr\Http\Message\ResponseInterface

loadSectionFromPath()

loadSectionFromPath(\Pimple\Container  $container) : \Charcoal\Cms\SectionInterface

Parameters

\Pimple\Container $container

Pimple DI container.

Returns

\Charcoal\Cms\SectionInterface