mirror of
https://github.com/cedar2025/Xboard.git
synced 2025-02-08 18:08:13 -05:00
22 lines
435 B
PHP
22 lines
435 B
PHP
![]() |
<?php
|
||
|
|
||
|
namespace App\Services\Plugin;
|
||
|
|
||
|
use Exception;
|
||
|
use Symfony\Component\HttpFoundation\Response;
|
||
|
|
||
|
class InterceptResponseException extends Exception
|
||
|
{
|
||
|
protected Response $response;
|
||
|
|
||
|
public function __construct(Response $response)
|
||
|
{
|
||
|
parent::__construct('Response intercepted');
|
||
|
$this->response = $response;
|
||
|
}
|
||
|
|
||
|
public function getResponse(): Response
|
||
|
{
|
||
|
return $this->response;
|
||
|
}
|
||
|
}
|