public function __construct(RouterInterface $router, callable $matcher, callable $handler, $propagate = false, $limit = 0)
{
$this->router = $router;
$this->matcher = $matcher;
$this->handler = $handler;
$this->propagate = $propagate;
$this->limit = $limit;
$this->pointer = null;
$this->cancelled = false;
}