Remove unused ivar from Transmitter
This commit is contained in:
parent
6849c9456f
commit
cd9cc09afe
|
|
@ -204,7 +204,7 @@ class Router implements RouterInterface
|
|||
return null;
|
||||
}
|
||||
|
||||
function startsWith($haystack, $needle)
|
||||
private function startsWith($haystack, $needle)
|
||||
{
|
||||
$length = strlen($needle);
|
||||
return (substr($haystack, 0, $length) === $needle);
|
||||
|
|
|
|||
|
|
@ -5,23 +5,11 @@ namespace WellRESTed\Transmission;
|
|||
use Psr\Http\Message\ResponseInterface;
|
||||
use Psr\Http\Message\ServerRequestInterface;
|
||||
use Psr\Http\Message\StreamInterface;
|
||||
use WellRESTed\Dispatching\Dispatcher;
|
||||
use WellRESTed\Dispatching\DispatcherInterface;
|
||||
|
||||
class Transmitter implements TransmitterInterface
|
||||
{
|
||||
/** @var int */
|
||||
private $chunkSize = 0;
|
||||
/** @var DispatcherInterface */
|
||||
private $dispatcher;
|
||||
|
||||
public function __construct(DispatcherInterface $dispatcher = null)
|
||||
{
|
||||
if ($dispatcher === null) {
|
||||
$dispatcher = new Dispatcher();
|
||||
}
|
||||
$this->dispatcher = $dispatcher;
|
||||
}
|
||||
|
||||
/**
|
||||
* Outputs a response to the client.
|
||||
|
|
|
|||
Loading…
Reference in New Issue