$path
$path : string
URI path.
News Route Handler
$news : \Charcoal\Cms\NewsInterface|\Charcoal\Object\RoutableInterface
The news entry matching the URI path.
__invoke(\Pimple\Container $container, \Psr\Http\Message\RequestInterface $request, \Psr\Http\Message\ResponseInterface $response) : \Psr\Http\Message\ResponseInterface
\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. |
loadNewsFromPath(\Pimple\Container $container) : \Charcoal\Cms\NewsInterface
\Pimple\Container | $container | Pimple DI container. |