2015-04-02 77 views

回答

1

创建您的扩展要求,并简单的通过它的一个实例给调度员在自己的应用webroot/index.php前端控制器:

https://github.com/cakephp/app/blob/3.0.0/webroot/index.php#L35

// .... 

use App\Network\MyCustomRequest; 

$dispatcher = DispatcherFactory::create(); 
$dispatcher->dispatch(
    MyCustomRequest::createFromGlobals(), // there it goes 
    new Response() 
); 
+0

感谢@ndm,它的工作原理。 – 2015-04-03 09:39:06