ICanBoogie/bind-routing 4.0.x
  • Namespace
  • Class

Namespaces

  • ICanBoogie
    • Binding
      • Routing

Classes

  • BeforeSynthesizeRoutesEvent
  • Hooks
  • RouteDispatcherConstructor
  • SynthesizeRoutesEvent

Traits

  • ApplicationBindings
  • ControllerBindings
  • ForwardUndefinedPropertiesToApplication

Class Hooks

Namespace: ICanBoogie\Binding\Routing
Located at Hooks.php

Methods summary

public static array
# synthesize_routes_config( array $fragments )

Synthesize the routes config from routes fragments.

Synthesize the routes config from routes fragments.

Parameters

$fragments

Returns

array

Throws

ICanBoogie\Routing\PatternNotDefined
if a pattern is missing from a route definition.
ICanBoogie\Routing\ControllerNotDefined

if a controller is missing from a route definition and no location is defined.

public static ICanBoogie\Routing\RouteCollection
# get_routes( ICanBoogie\Application $app )

Returns the route collection.

Returns the route collection.

Parameters

$app

Returns

ICanBoogie\Routing\RouteCollection
public static string
# url_for( ICanBoogie\Application $app, string|ICanBoogie\Routing\Route $route, array|object|null $values = null )

Returns the contextualized URL of a route.

Returns the contextualized URL of a route.

Parameters

$app
$route
$values

Returns

string
ICanBoogie/bind-routing 4.0.x API documentation generated by ApiGen