Add test before anonymize
This commit is contained in:
parent
9800aa54c5
commit
167c54aa3a
2 changed files with 12 additions and 1 deletions
|
|
@ -6,6 +6,7 @@ use Illuminate\Support\Facades\Log;
|
|||
use Illuminate\Support\Facades\Mail;
|
||||
use Throwable;
|
||||
use Kwaadpepper\ExceptionHandler\Exceptions\ExceptionHandler;
|
||||
use Sentry\Laravel\Integration;
|
||||
|
||||
class Handler extends ExceptionHandler
|
||||
{
|
||||
|
|
@ -34,6 +35,8 @@ class Handler extends ExceptionHandler
|
|||
*/
|
||||
public function report(Throwable $exception)
|
||||
{
|
||||
Integration::captureUnhandledException($exception);
|
||||
|
||||
if ($exception instanceof CafelApiImageFetchException) {
|
||||
$this->reportCafelApiImageErrorException($exception);
|
||||
return;
|
||||
|
|
|
|||
|
|
@ -6,6 +6,8 @@ use App\Http\Controllers\Fo\InfoController;
|
|||
use App\Http\Controllers\Fo\TraceaPoultryController;
|
||||
use Illuminate\Support\Facades\Route;
|
||||
|
||||
use function Clue\StreamFilter\fun;
|
||||
|
||||
Route::domain(config('app.domain'))->group(function () {
|
||||
// * LEGALS and POLICY
|
||||
Route::view('/charte-confidentialite', 'front.pages.policy')->name('policy');
|
||||
|
|
@ -20,7 +22,13 @@ Route::domain(config('app.domain'))->group(function () {
|
|||
|
||||
// * Partie Poultry
|
||||
Route::name('poultry.')->group(function () {
|
||||
Route::view('/', 'front.poultry.search')->name('search');
|
||||
//Route::view('/', 'front.poultry.search')->name('search');
|
||||
Route::get('/', function () {
|
||||
$toto = function (int $id, string $pwd) {
|
||||
var_dump("test");
|
||||
};
|
||||
$toto("ddd", 3);
|
||||
})->name('search');
|
||||
Route::post('/', [TraceaPoultryController::class, 'searchSubmit'])->name('searchSubmit');
|
||||
Route::get('tracabilite/volaille', [TraceaPoultryController::class, 'show'])->name('show');
|
||||
Route::get('tracabilite/volaille/distribution', [TraceaPoultryController::class, 'getDistribution'])
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue