You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
27 lines
877 B
27 lines
877 B
<?php
|
|
/**
|
|
* @name SamplePlugin
|
|
* @desc Yaf定义了如下的6个Hook,插件之间的执行顺序是先进先Call
|
|
* @see http://www.php.net/manual/en/class.yaf-plugin-abstract.php
|
|
* @author {&$AUTHOR&}
|
|
*/
|
|
class SamplePlugin extends Yaf_Plugin_Abstract {
|
|
|
|
public function routerStartup(Yaf_Request_Abstract $request, Yaf_Response_Abstract $response) {
|
|
}
|
|
|
|
public function routerShutdown(Yaf_Request_Abstract $request, Yaf_Response_Abstract $response) {
|
|
}
|
|
|
|
public function dispatchLoopStartup(Yaf_Request_Abstract $request, Yaf_Response_Abstract $response) {
|
|
}
|
|
|
|
public function preDispatch(Yaf_Request_Abstract $request, Yaf_Response_Abstract $response) {
|
|
}
|
|
|
|
public function postDispatch(Yaf_Request_Abstract $request, Yaf_Response_Abstract $response) {
|
|
}
|
|
|
|
public function dispatchLoopShutdown(Yaf_Request_Abstract $request, Yaf_Response_Abstract $response) {
|
|
}
|
|
}
|
|
|