ice framework documentation ice doc v1.6.2
Methods
  • setRouteParser(variable $routeParser) : void
  • setDataGenerator(variable $dataGenerator) : void
  • __construct(variable $routeParser, variable $dataGenerator) : void
    Constructs a route collector.
  • addRoute(variable $httpMethod, string $route, variable $handler) : void
    Adds a route to the collection.
  • getData() : void
    Returns the collected route data, as provided by the data generator.
Methods Details
  • public function setRouteParser(variable $routeParser)

  • public function setDataGenerator(variable $dataGenerator)

  • public function __construct(variable $routeParser, variable $dataGenerator)

    Constructs a route collector.
  • public function addRoute(variable $httpMethod, string $route, variable $handler)

    Adds a route to the collection.
    The syntax used in the $route string depends on the used route parser.
  • public function getData()

    Returns the collected route data, as provided by the data generator.