[英]How to execute Restler::handle() with custom $request object?
我有一個資源GET / say / hello /:name。 如何從具有自定義上下文的資源中獲得響應? 我期望這段代碼:
<?php
$request = Request('GET', '/say/hello/World');
$app = new Luracast\Restler\Restler();
$output = $app->handle($request);
謝謝
Reslter 3(當前穩定版本)尚不支持請求對象。 我們將考慮在將來的版本中將其添加為功能!
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.