BearFramework\App\Routes

Provides functionality for registering callbacks for specific requests and executing them.
BearFramework\App\Routes {

    
/* Methods */
    
public self add string|string[] $pattern , callable|callable[] $callback )
    public 
mixed getResponse BearFramework\App\Request $request )

}
Methods
public self add ( string|string[] $pattern , callable|callable[] $callback )
Registers a request handler.
public mixed getResponse ( BearFramework\App\Request $request )
Finds the matching callback and returns its result.
Details
Location: ~/src/App/Routes.php
The information on this page is created for version 1.1 of Bear Framework and may not be applicable for other versions of the framework.