-
Notifications
You must be signed in to change notification settings - Fork 10.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
introduce affordances to restrict queries during response preparation
- Loading branch information
1 parent
3dff584
commit 020dd19
Showing
8 changed files
with
327 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
<?php | ||
|
||
namespace Illuminate\Routing\Events; | ||
|
||
class PreparingResponse | ||
{ | ||
/** | ||
* The request object. | ||
* | ||
* @var \Illuminate\Http\Request | ||
*/ | ||
public $request; | ||
|
||
/** | ||
* The response object being resolved. | ||
* | ||
* @var \Symfony\Component\HttpFoundation\Response | ||
*/ | ||
public $response; | ||
|
||
/** | ||
* Create a new event instance. | ||
* | ||
* @param \Illuminate\Http\Request $request | ||
* @param \Symfony\Component\HttpFoundation\Response $response | ||
*/ | ||
public function __construct($request, $response) | ||
{ | ||
$this->request = $request; | ||
|
||
$this->response = $response; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
<?php | ||
|
||
namespace Illuminate\Routing\Events; | ||
|
||
class ResponsePrepared | ||
{ | ||
/** | ||
* The request object. | ||
* | ||
* @var \Illuminate\Http\Request | ||
*/ | ||
public $request; | ||
|
||
/** | ||
* The response object being resolved. | ||
* | ||
* @var \Response | ||
*/ | ||
public $response; | ||
|
||
/** | ||
* Create a new event instance. | ||
* | ||
* @param \Illuminate\Http\Request $request | ||
* @param mixed $response | ||
*/ | ||
public function __construct($request, $response) | ||
{ | ||
$this->request = $request; | ||
|
||
$this->response = $response; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.