PHP Class Dingo\Api\Routing\UrlGenerator

Inheritance: extends Illuminate\Routing\UrlGenerator
Show file Open project: dingo/api Class Usage Examples

Protected Properties

Property Type Description
$collections array Array of route collections.

Public Methods

Method Description
__construct ( Illuminate\Http\Request $request ) : void Create a new URL generator instance.
setRouteCollections ( array $collections ) Set the route collection instance.
version ( string $version ) : UrlGenerator Set the routes to use from the version.

Method Details

__construct() public method

Create a new URL generator instance.
public __construct ( Illuminate\Http\Request $request ) : void
$request Illuminate\Http\Request
return void

setRouteCollections() public method

Set the route collection instance.
public setRouteCollections ( array $collections )
$collections array

version() public method

Set the routes to use from the version.
public version ( string $version ) : UrlGenerator
$version string
return UrlGenerator

Property Details

$collections protected property

Array of route collections.
protected array $collections
return array