\FW\Router\StandardContentTypeMiddleware

Middleware to set the content-type of an application

Summary

Methods
Properties
Constants
__construct()
call()
No public properties found
No constants found
No protected methods found
$view
N/A
No private methods found
No private properties found
N/A

Properties

$view

$view : string

Content type to set

Type

string

Methods

__construct()

__construct(\FW\View\ViewInterface  $view) 

Constructs the middleware with the given content type

Parameters

\FW\View\ViewInterface $view

call()

call() 

Slim middleware processor

Sets the HTTP 'Content-Type' header