Overview

Namespaces

  • api
  • config
  • database
  • PHP
  • Slim
    • Exception
    • Http
    • Middleware
  • utiliy

Classes

  • Environment
  • Log
  • LogWriter
  • Middleware
  • Route
  • Router
  • Slim
  • View
  • Overview
  • Namespace
  • Class
  • Tree

Class Middleware

Middleware

Direct known subclasses

Slim\Middleware\ContentTypes, Slim\Middleware\Flash, Slim\Middleware\MethodOverride, Slim\Middleware\PrettyExceptions, Slim\Middleware\SessionCookie
Abstract
Namespace: Slim
Package: Slim
Author: Josh Lockhart
Since: 1.6.0
Located at thirdparty/Slim/Middleware.php
Methods summary
final public
# setApplication( Slim $application )

Set application

Set application

This method injects the primary Slim application instance into this middleware.

Parameters

$application
Slim
$application
final public Slim
# getApplication( )

Get application

Get application

This method retrieves the application previously injected into this middleware.

Returns

Slim
final public
# setNextMiddleware( Slim|Slim\Middleware $nextMiddleware )

Set next middleware

Set next middleware

This method injects the next downstream middleware into this middleware so that it may optionally be called when appropriate.

Parameters

$nextMiddleware
Slim|Slim\Middleware
final public Slim|Slim\Middleware
# getNextMiddleware( )

Get next middleware

Get next middleware

This method retrieves the next downstream middleware previously injected into this middleware.

Returns

Slim|Slim\Middleware
abstract public
# call( )

Call

Call

Perform actions specific to this middleware and optionally call the next downstream middleware.

Properties summary
protected Slim $app
#

Reference to the primary application instance

Reference to the primary application instance

protected mixed $next
#

Reference to the next downstream middleware

Reference to the next downstream middleware

GeoApi API documentation generated by ApiGen 2.8.0