-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
have a default hooks when customer did not provide hook
- Loading branch information
1 parent
ca6585a
commit 7acfb5a
Showing
3 changed files
with
61 additions
and
2 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,59 @@ | ||
<?php | ||
|
||
namespace Moesif\MoesifBundle\Interfaces; | ||
|
||
use Moesif\MoesifBundle\Interfaces\MoesifHooksInterface; | ||
use Symfony\Component\HttpFoundation\Request; | ||
use Symfony\Component\HttpFoundation\Response; | ||
|
||
|
||
class MoesifDefaultHooks implements MoesifHooksInterface { | ||
|
||
public function __construct() { | ||
} | ||
|
||
public function identifyUserId(Request $request, Response $response): string|null | ||
{ | ||
return null; | ||
} | ||
|
||
public function identifyCompanyId(Request $request, Response $response): string|null | ||
{ | ||
return null; | ||
} | ||
|
||
public function identifySessionToken(Request $request, Response $response): string|null | ||
{ | ||
return null; | ||
} | ||
|
||
public function getMetadata(Request $request, Response $response): ?array | ||
{ | ||
return null; | ||
} | ||
|
||
public function skip(Request $request, Response $response): bool | ||
{ | ||
return false; | ||
} | ||
|
||
public function maskRequestHeaders(array $headers): array | ||
{ | ||
return $headers; | ||
} | ||
|
||
public function maskResponseHeaders(array $headers): array | ||
{ | ||
return $headers; | ||
} | ||
|
||
public function maskRequestBody($body) | ||
{ | ||
return $body; | ||
} | ||
|
||
public function maskResponseBody($body) | ||
{ | ||
return $body; | ||
} | ||
} |