Fixed typos

This commit is contained in:
Graham Campbell
2015-07-06 19:22:49 +01:00
parent 9b43b42e27
commit 408141dd8b
2 changed files with 4 additions and 4 deletions

View File

@@ -12,7 +12,7 @@
namespace CachetHQ\Cachet\Exceptions;
use GrahamCampbell\Exceptions\ExceptionHandler;
use Symfony\Component\HttpKernel\Exception\HttpNotFoundException;
use Symfony\Component\HttpKernel\Exception\NotFoundHttpException;
class Handler extends ExceptionHandler
{
@@ -22,6 +22,6 @@ class Handler extends ExceptionHandler
* @var string[]
*/
protected $dontReport = [
HttpNotFoundException::class,
NotFoundHttpException::class,
];
}

View File

@@ -14,7 +14,7 @@ namespace CachetHQ\Cachet\Exceptions\Transformers;
use Exception;
use GrahamCampbell\Exceptions\Transformers\TransformerInterface;
use Illuminate\Database\Eloquent\ModelNotFoundException;
use Symfony\Component\HttpKernel\Exception\HttpNotFoundException;
use Symfony\Component\HttpKernel\Exception\NotFoundHttpException;
/**
* This is the model not found transformer class.
@@ -33,7 +33,7 @@ class ModelNotFoundTransformer implements TransformerInterface
public function transform(Exception $exception)
{
if ($exception instanceof ModelNotFoundException) {
$exception = new HttpNotFoundException('Resource not found');
$exception = new NotFoundHttpException('Resource not found');
}
return $exception;