static function start() { return new static(HttpConnection::build()); }
<?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>
protected function setUp() { $this->connection = HttpConnection::build(); }
<?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);