titon / framework

A modular Hack framework that runs on HHVM.
http://titon.io
BSD 2-Clause "Simplified" License
206 stars 23 forks source link

Add Router::wire() #52

Closed milesj closed 9 years ago

milesj commented 9 years ago

This method should wire up routes based on annotations found in the class. This will require #51.

class Foo {
    <<Route('/foo')>>
    public function action(): mixed {}
}
$router->wire('Foo');