Commit bb92a21c authored by Avris's avatar Avris

v4.0

parent fa396205
<?php
namespace Avris\Micrus\Doctrine;
use Avris\Micrus\Exception\Http\NotFoundHttpException;
use Avris\Micrus\Exception\NotFoundException;
use Avris\Micrus\Model\MatchProvider;
use Avris\Micrus\Tool\QueueBag;
......@@ -46,7 +47,7 @@ class DoctrineMatchProvider implements MatchProvider
$entity = $repo->findOneBy([$key => $value]);
if (!$entity) {
throw new NotFoundException(sprintf(
throw new NotFoundHttpException(sprintf(
'Cannot find an entity of type "%s" with %s=%s',
$parameter->getClass()->getName(),
$key,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment