Skip to content
Permalink
Browse files

No need to use validator in this case.

  • Loading branch information...
tarlepp committed Jul 29, 2019
1 parent 4d4b6af commit d95692512f1a057f4c056d00e9e74f17b3aa5e5a
Showing with 3 additions and 6 deletions.
  1. +3 −6 src/Utils/RequestLogger.php
@@ -13,7 +13,6 @@
use App\Entity\User;
use App\Helpers\LoggerAwareTrait;
use App\Resource\LogRequestResource;
use LogicException;
use Symfony\Component\HttpFoundation\Request;
use Symfony\Component\HttpFoundation\Response;
use Throwable;
@@ -157,17 +156,15 @@ public function handle(): void
}
/**
* Store request log and clean history
* Store request log.
*
* @throws LogicException
* @throws \Doctrine\ORM\ORMException
* @throws \Doctrine\ORM\OptimisticLockException
* @throws Throwable
*/
private function createRequestLogEntry(): void
{
// Create new request log entity
$entity = new LogRequest($this->request, $this->response, $this->user, $this->apiKey, $this->masterRequest);
$this->resource->save($entity, true);
$this->resource->save($entity, true, true);
}
}

0 comments on commit d956925

Please sign in to comment.
You can’t perform that action at this time.