Toggle navigation
Hot Examples
KO
EN
RU
DE
FR
ES
PT
IT
JP
ZH
KO
PHP
PHP
C#
Java
Go
C++
Python
JS
TS
검색
홈
Webiny
Component
Router
Route
Route
setCallback
Webiny\Component\Router\Route\Route::setCallback PHP 메소드
Route 1 문서
파일 보기
프로젝트 열기: Webiny/Framework
setCallback()
공개
메소드
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