Skip to content

Div PHP Ways 2.1.0

Compare
Choose a tag to compare
@rafageist rafageist released this 06 Jul 06:30
· 19 commits to master since this release

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() {
         ...
     } 

}