BearFramework\App\Shortcuts::add

Creates a new shortcut.
public self add string $name , callable $callback )
Parameters
name
The name of the shortcut property.
callback
The callback to return the shortcut value.
Returns
Returns a reference to itself.
Details
Location: ~/src/App/Shortcuts.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.