예제 #1
0
 static function start()
 {
     return new static(HttpConnection::build());
 }
예제 #2
0
<?php

use RHo\HTTP\JwtConnection as HttpConnection;
$httpConnection = HttpConnection::build();
?>
<div>
	<pre> <b>Request::authorizationHeader()</b>: </pre>
	<span id="authorization_header"><?php 
var_dump($httpConnection->request()->authorizationHeader());
?>
</span>
</div>
예제 #3
0
 protected function setUp()
 {
     $this->connection = HttpConnection::build();
 }
예제 #4
0
<?php

ini_set('xdebug.var_display_max_depth', 10);
use RHo\HTTP\JwtConnection as HttpConnection;
use RHo\RESTful\Service as RestfulService;
use RHo\RESTful\Resource as RestfulResource;
$restfulService = new RestfulService(HttpConnection::build());
$restfulResource = RestfulResource::build($restfulService->resources());
if (false === $restfulResource || false === $restfulResource->findPath()) {
    $restfulService->sendClientErrorNotFound();
    exit;
}
$ctrlClassName = $restfulResource->ctrlClassName();
$ctrl = new $ctrlClassName();
var_dump($restfulResource, $ctrl);