Skip to content

Commit

Permalink
Use a real time facade
Browse files Browse the repository at this point in the history
  • Loading branch information
ryanmitchell committed Nov 27, 2023
1 parent 7a7a75b commit b8c0757
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Http/Responses/DataResponse.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,13 @@

namespace Statamic\Http\Responses;

use Facades\Statamic\Routing\ResolveRedirect;
use Illuminate\Contracts\Support\Responsable;
use Illuminate\Support\Str;
use Statamic\Auth\Protect\Protection;
use Statamic\Events\ResponseCreated;
use Statamic\Exceptions\NotFoundHttpException;
use Statamic\Facades\Site;
use Statamic\Routing\ResolveRedirect;
use Statamic\View\View;

class DataResponse implements Responsable
Expand Down Expand Up @@ -77,7 +77,7 @@ protected function getRedirect()
throw new NotFoundHttpException;
}

return redirect((new ResolveRedirect)($redirect, $this->data));
return redirect(ResolveRedirect::resolve($redirect, $this->data));
}

protected function protect()
Expand Down

0 comments on commit b8c0757

Please sign in to comment.