for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Http\HttplugBundle\Collector;
use Http\Client\Common\Plugin;
use Http\Client\HttpClient;
use Psr\Http\Message\RequestInterface;
class NewStackPlugin implements Plugin
{
/**
* @var Collector
*/
private $collector;
* @var string
private $client;
* @param Collector $collector
* @param string $client
public function __construct(Collector $collector, $client)
$this->collector = $collector;
$this->client = $client;
}
* {@inheritdoc}
public function handleRequest(RequestInterface $request, callable $next, callable $first)
$this->collector->addStack(new ProfileStack($this->client));
return $next($request);