Skip to content
Snippets Groups Projects
Commit 4aa86df9 authored by catch's avatar catch
Browse files

Issue #3231040 by alexpott, Anul, longwave, bbrala, catch: (revert) Remove...

Issue #3231040 by alexpott, Anul, longwave, bbrala, catch: (revert) Remove DependencySerializationTrait from JSON API exceptions
parent bb486268
No related branches found
No related tags found
No related merge requests found
......@@ -5,6 +5,7 @@
use Drupal\Core\Access\AccessResultInterface;
use Drupal\Core\Access\AccessResultReasonInterface;
use Drupal\Core\Cache\CacheableMetadata;
use Drupal\Core\DependencyInjection\DependencySerializationTrait;
use Drupal\Core\Entity\EntityInterface;
use Drupal\Core\Http\Exception\CacheableAccessDeniedHttpException;
use Drupal\jsonapi\JsonApiResource\ResourceIdentifier;
......@@ -22,6 +23,7 @@
*/
class EntityAccessDeniedHttpException extends CacheableAccessDeniedHttpException implements ResourceIdentifierInterface {
use DependencySerializationTrait;
use ResourceIdentifierTrait;
/**
......
......@@ -3,6 +3,7 @@
namespace Drupal\jsonapi\Exception;
use Drupal\Core\Entity\EntityConstraintViolationListInterface;
use Drupal\Core\DependencyInjection\DependencySerializationTrait;
use Symfony\Component\HttpKernel\Exception\HttpException;
/**
......@@ -22,6 +23,8 @@
*/
class UnprocessableHttpEntityException extends HttpException {
use DependencySerializationTrait;
/**
* The constraint violations associated with this exception.
*
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment