2015-04-02 58 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