FileMaster
Search
Toggle Dark Mode
Home
/
.
/
wp-content
/
plugins
/
ameliabooking
/
vendor
/
php-http
/
client-common
/
src
/
Plugin
Edit File: VersionBridgePlugin.php
<?php namespace AmeliaHttp\Client\Common\Plugin; use AmeliaPsr\Http\Message\RequestInterface; /** * A plugin that helps you migrate from php-http/client-common 1.x to 2.x. This * will also help you to support PHP5 at the same time you support 2.x. * * @author Tobias Nyholm <tobias.nyholm@gmail.com> */ trait VersionBridgePlugin { abstract protected function doHandleRequest(RequestInterface $request, callable $next, callable $first); public function handleRequest(RequestInterface $request, callable $next, callable $first) { return $this->doHandleRequest($request, $next, $first); } }
Save
Back