Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #3 from felix-app/master
New features for laravel-request-library
- Loading branch information
Showing
10 changed files
with
265 additions
and
170 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
<?php namespace Prettus\RequestLogger\Helpers; | ||
|
||
use Prettus\RequestLogger\Contracts\Interpolable; | ||
|
||
use Illuminate\Http\Request; | ||
use Symfony\Component\HttpFoundation\Response; | ||
|
||
/** | ||
* Class BaseInterpolation | ||
* @package Prettus\RequestLogger\Helpers | ||
*/ | ||
abstract class BaseInterpolation implements Interpolable { | ||
|
||
/** | ||
* @var Request | ||
*/ | ||
protected $request; | ||
|
||
/** | ||
* @var Response | ||
*/ | ||
protected $response; | ||
|
||
/** | ||
* @param Request $request | ||
*/ | ||
public function setRequest(Request $request) | ||
{ | ||
$this->request = $request; | ||
} | ||
|
||
/** | ||
* @param Response $response | ||
*/ | ||
public function setResponse(Response $response) | ||
{ | ||
$this->response = $response; | ||
} | ||
|
||
/** | ||
* @param string $raw | ||
*/ | ||
protected function escape($raw) | ||
{ | ||
return preg_replace('/\s/', "\\s", $raw); | ||
} | ||
} |
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
Oops, something went wrong.