PHP Class Mpociot\ApiDoc\Generators\AbstractGenerator

Afficher le fichier Open project: mpociot/laravel-apidoc-generator Class Usage Examples

Méthodes publiques

Méthode Description
callRoute ( string $method, string $uri, array $parameters = [], array $cookies = [], array $files = [], array $server = [], string $content = null ) : Illuminate\Http\Response Call the given URI and return the Response.
prepareMiddleware ( boolean $disable = false ) : void Prepares / Disables route middlewares.
processRoute ( Illuminate\Routing\Route $route, array $bindings = [], boolean $withResponse = true ) : array

Méthodes protégées

Méthode Description
addRouteModelBindings ( $route, array $bindings ) : mixed
fancyImplode ( array $arr, string $first, string $last ) : string
getParameters ( array $routeData, array $routeAction, array $bindings ) : mixed
getRouteDescription ( Illuminate\Routing\Route $route ) : string
getRouteGroup ( string $route ) : string
getRouteResponse ( $route, $bindings, $headers = [] ) : Illuminate\Http\Response
getRouteRules ( $route, array $bindings ) : array
getUri ( $route ) : mixed
normalizeRule ( string $rule ) : string Normalizes a rule so that we can accept short types.
parseParameters ( string $rule, string $parameter ) : array Parse a parameter list.
parseRule ( string $rule, string $ruleName, array &$attributeData, integer $seed ) : void
parseStringRule ( string $rules ) : array Parse a string based rule.
splitValuePairs ( $parameters, $first = 'is ', $last = 'or ' )
transformHeadersToServerVars ( array $headers ) : array Transform headers array to array of $_SERVER vars with HTTP_* format.

Method Details

addRouteModelBindings() protected méthode

protected addRouteModelBindings ( $route, array $bindings ) : mixed
$route
$bindings array
Résultat mixed

callRoute() abstract public méthode

Call the given URI and return the Response.
abstract public callRoute ( string $method, string $uri, array $parameters = [], array $cookies = [], array $files = [], array $server = [], string $content = null ) : Illuminate\Http\Response
$method string
$uri string
$parameters array
$cookies array
$files array
$server array
$content string
Résultat Illuminate\Http\Response

fancyImplode() protected méthode

protected fancyImplode ( array $arr, string $first, string $last ) : string
$arr array
$first string
$last string
Résultat string

getParameters() protected méthode

protected getParameters ( array $routeData, array $routeAction, array $bindings ) : mixed
$routeData array
$routeAction array
$bindings array
Résultat mixed

getRouteDescription() protected méthode

protected getRouteDescription ( Illuminate\Routing\Route $route ) : string
$route Illuminate\Routing\Route
Résultat string

getRouteGroup() protected méthode

protected getRouteGroup ( string $route ) : string
$route string
Résultat string

getRouteResponse() protected méthode

protected getRouteResponse ( $route, $bindings, $headers = [] ) : Illuminate\Http\Response
$route
$bindings
$headers
Résultat Illuminate\Http\Response

getRouteRules() protected méthode

protected getRouteRules ( $route, array $bindings ) : array
$route
$bindings array
Résultat array

getUri() abstract protected méthode

abstract protected getUri ( $route ) : mixed
$route
Résultat mixed

normalizeRule() protected méthode

Normalizes a rule so that we can accept short types.
protected normalizeRule ( string $rule ) : string
$rule string
Résultat string

parseParameters() protected méthode

Parse a parameter list.
protected parseParameters ( string $rule, string $parameter ) : array
$rule string
$parameter string
Résultat array

parseRule() protected méthode

protected parseRule ( string $rule, string $ruleName, array &$attributeData, integer $seed ) : void
$rule string
$ruleName string
$attributeData array
$seed integer
Résultat void

parseStringRule() protected méthode

Parse a string based rule.
protected parseStringRule ( string $rules ) : array
$rules string
Résultat array

prepareMiddleware() abstract public méthode

Prepares / Disables route middlewares.
abstract public prepareMiddleware ( boolean $disable = false ) : void
$disable boolean
Résultat void

processRoute() abstract public méthode

abstract public processRoute ( Illuminate\Routing\Route $route, array $bindings = [], boolean $withResponse = true ) : array
$route Illuminate\Routing\Route
$bindings array
$withResponse boolean
Résultat array

splitValuePairs() protected méthode

protected splitValuePairs ( $parameters, $first = 'is ', $last = 'or ' )

transformHeadersToServerVars() protected méthode

Transform headers array to array of $_SERVER vars with HTTP_* format.
protected transformHeadersToServerVars ( array $headers ) : array
$headers array
Résultat array