Toggle navigation
Hot Examples
EN
EN
RU
DE
FR
ES
PT
IT
JP
ZH
KO
PHP
PHP
C#
Java
Go
C++
Python
JS
TS
Search
Home
Webiny
Component
Router
Route
Route
setCallback
Webiny\Component\Router\Route\Route::setCallback PHP Method
Route Class Documentation
Show file
Open project: Webiny/Framework
setCallback()
public
method
Set the route callback.
public
setCallback
(
string
|
array
$callback
)
$callback
string
|
array
Callback that will be attached to this route. Note that this callback can be overwritten during the routing process.
public function setCallback($callback) { $this->callback = $callback; return $this; }
Route
__construct
addOption
compile
getCallback
getHost
getMethods
getOptions
getPath
getRealPath
getSchemes
getTags
hasOption
setCallback
setHost
setMethods
setOptions
setPath
setSchemes
setTags