PHP Class Dingo\Api\Console\Command\Routes

Inheritance: extends Illuminate\Foundation\Console\RouteListCommand
Afficher le fichier Open project: dingo/api

Protected Properties

Свойство Type Description
$description string The console command description.
$headers array The table headers for the command.
$name string The console command name.
$router Dingo\Api\Routing\Router Dingo router instance.
$routes array Array of route collections.

Méthodes publiques

Méthode Description
__construct ( Router $router ) : void Create a new routes command instance.
fire ( ) : void Execute the console command.

Méthodes protégées

Méthode Description
filterByName ( array $route ) : boolean Filter the route by its name.
filterByPath ( array $route ) : boolean Filter the route by its path.
filterByProtected ( array $route ) : boolean Filter the route by whether or not it is protected.
filterByScopes ( array $route ) : boolean Filter the route by its scopes.
filterByUnprotected ( array $route ) : boolean Filter the route by whether or not it is unprotected.
filterByVersions ( array $route ) : boolean Filter the route by its versions.
filterRoute ( array $route ) : array | null Filter the route by URI, Version, Scopes and / or name.
getOptions ( ) : array Get the console command options.
getRoutes ( ) : array Compile the routes into a displayable format.
routeRateLimit ( Route $route ) : null | string Display the routes rate limiting requests per second. This takes the limit and divides it by the expiration time in seconds to give you a rough idea of how many requests you'd be able to fire off per second on the route.

Method Details

__construct() public méthode

Create a new routes command instance.
public __construct ( Router $router ) : void
$router Dingo\Api\Routing\Router
Résultat void

filterByName() protected méthode

Filter the route by its name.
protected filterByName ( array $route ) : boolean
$route array
Résultat boolean

filterByPath() protected méthode

Filter the route by its path.
protected filterByPath ( array $route ) : boolean
$route array
Résultat boolean

filterByProtected() protected méthode

Filter the route by whether or not it is protected.
protected filterByProtected ( array $route ) : boolean
$route array
Résultat boolean

filterByScopes() protected méthode

Filter the route by its scopes.
protected filterByScopes ( array $route ) : boolean
$route array
Résultat boolean

filterByUnprotected() protected méthode

Filter the route by whether or not it is unprotected.
protected filterByUnprotected ( array $route ) : boolean
$route array
Résultat boolean

filterByVersions() protected méthode

Filter the route by its versions.
protected filterByVersions ( array $route ) : boolean
$route array
Résultat boolean

filterRoute() protected méthode

Filter the route by URI, Version, Scopes and / or name.
protected filterRoute ( array $route ) : array | null
$route array
Résultat array | null

fire() public méthode

Execute the console command.
public fire ( ) : void
Résultat void

getOptions() protected méthode

Get the console command options.
protected getOptions ( ) : array
Résultat array

getRoutes() protected méthode

Compile the routes into a displayable format.
protected getRoutes ( ) : array
Résultat array

routeRateLimit() protected méthode

Display the routes rate limiting requests per second. This takes the limit and divides it by the expiration time in seconds to give you a rough idea of how many requests you'd be able to fire off per second on the route.
protected routeRateLimit ( Route $route ) : null | string
$route Dingo\Api\Routing\Route
Résultat null | string

Property Details

$description protected_oe property

The console command description.
protected string $description
Résultat string

$headers protected_oe property

The table headers for the command.
protected array $headers
Résultat array

$name protected_oe property

The console command name.
protected string $name
Résultat string

$router protected_oe property

Dingo router instance.
protected Router,Dingo\Api\Routing $router
Résultat Dingo\Api\Routing\Router

$routes protected_oe property

Array of route collections.
protected array $routes
Résultat array