File "TracingCallableDispatcherTracing.php"
Full Path: /var/www/drive/sentry/sentry-laravel/src/Sentry/Laravel/Features/TracingCallableDispatcherTracing.php
File size: 680 bytes
MIME-type: text/x-php
Charset: utf-8
<?php
namespace Sentry\Laravel\Tracing\Routing;
use Illuminate\Routing\Contracts\CallableDispatcher;
use Illuminate\Routing\Route;
class TracingCallableDispatcherTracing extends TracingRoutingDispatcher implements CallableDispatcher
{
/** @var \Illuminate\Routing\Contracts\CallableDispatcher */
private $dispatcher;
public function __construct(CallableDispatcher $dispatcher)
{
$this->dispatcher = $dispatcher;
}
public function dispatch(Route $route, $callable)
{
return $this->wrapRouteDispatch(function () use ($route, $callable) {
return $this->dispatcher->dispatch($route, $callable);
}, $route);
}
}