Commit afc5a87e 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

(cherry picked from commit 4aa86df9)
parent 5cc55e82
......@@ -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.
*
......
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