PHP Class SebastiaanLuca\Router\Routers\Router

The base class every router should extend.
Afficher le fichier Open project: sebastiaanluca/laravel-router

Protected Properties

Свойство Type Description
$api Dingo\Api\Routing\Router The Dingo API router.
$namespace string The default controller namespace.
$router SebastiaanLuca\Router\ExtendedRouter | Illuminate\Routing\Router The routing instance.

Méthodes publiques

Méthode Description
__construct ( Illuminate\Contracts\Routing\Registrar $router ) Router constructor.
getNamespace ( string | null $suffix = null ) : string Get the default namespace with the suffix attached.
map ( ) Map the routes.

Méthodes protégées

Méthode Description
setUpApiRouter ( ) Assign the API router if the Dingo API package is installed.

Method Details

__construct() public méthode

Router constructor.
public __construct ( Illuminate\Contracts\Routing\Registrar $router )
$router Illuminate\Contracts\Routing\Registrar

getNamespace() public méthode

Get the default namespace with the suffix attached.
public getNamespace ( string | null $suffix = null ) : string
$suffix string | null
Résultat string

map() abstract public méthode

Map the routes.
abstract public map ( )

setUpApiRouter() protected méthode

Assign the API router if the Dingo API package is installed.
protected setUpApiRouter ( )

Property Details

$api protected_oe property

The Dingo API router.
protected Router,Dingo\Api\Routing $api
Résultat Dingo\Api\Routing\Router

$namespace protected_oe property

The default controller namespace.
protected string $namespace
Résultat string

$router protected_oe property

The routing instance.
protected ExtendedRouter,SebastiaanLuca\Router|Router,Illuminate\Routing $router
Résultat SebastiaanLuca\Router\ExtendedRouter | Illuminate\Routing\Router