Overview

Namespaces

  • LeanCloud
    • Engine
    • Operation
    • Storage
    • Uploader

Classes

  • Cloud
  • LaravelEngine
  • LeanEngine
  • SlimEngine

Exceptions

  • FunctionError
  • Overview
  • Namespace
  • Class

Class SlimEngine

LeanEngine as Slim middleware

Add it in a Slim application:

$app = new \Slim\App();
$app->add(new SlimEngine());
LeanCloud\Engine\LeanEngine
Extended by LeanCloud\Engine\SlimEngine
Namespace: LeanCloud\Engine
Link: http://www.slimframework.com/docs/concepts/middleware.html
Located at LeanCloud/Engine/SlimEngine.php
Methods summary
protected string
# getHeaderLine( string $key )

Get request header value

Get request header value

Parameters

$key
Header key

Returns

string

Overrides

LeanCloud\Engine\LeanEngine::getHeaderLine()
protected string
# getBody( )

Get request body string

Get request body string

Returns

string

Overrides

LeanCloud\Engine\LeanEngine::getBody()
public Psr\Http\Message\ResponseInterface
# __invoke( Psr\Http\Message\ServerRequestInterface $request, Psr\Http\Message\ResponseInterface $response, callable $next )

Slim middleware entry point

Slim middleware entry point

Parameters

$request
PSR7 request
$response
PSR7 response
$next
Next middleware

Returns

Psr\Http\Message\ResponseInterface
Methods inherited from LeanCloud\Engine\LeanEngine
dispatch(), enableHttpsRedirect(), redirect(), send(), start(), withHeader()
Properties inherited from LeanCloud\Engine\LeanEngine
$env, $useHttpsRedirect
API documentation generated by ApiGen