Div PHP Ways 2.1.0
Adding rules!
ways::rule('some-rule', function() {return true or false;});
ways::listen("/secret", function() {...}, [
ways::PROPERTY_RULES => [
'some-rule',
function () {
return true; // another rule
}
]
]);
In class controllers:
class SomeController {
#listen@someAction = /some/action
#rules@someAction = some-rule
static function someAction() {
...
}
}