Commit 06e7f027 authored by catch's avatar catch
Browse files

Issue #3231040 by Anul, longwave, alexpott, bbrala: Remove...

Issue #3231040 by Anul, longwave, alexpott, bbrala: Remove DependencySerializationTrait from JSON API exceptions
parent 2e110293
Loading
Loading
Loading
Loading
+0 −2
Original line number Diff line number Diff line
@@ -5,7 +5,6 @@
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;
@@ -23,7 +22,6 @@
 */
class EntityAccessDeniedHttpException extends CacheableAccessDeniedHttpException implements ResourceIdentifierInterface {

  use DependencySerializationTrait;
  use ResourceIdentifierTrait;

  /**
+0 −3
Original line number Diff line number Diff line
@@ -3,7 +3,6 @@
namespace Drupal\jsonapi\Exception;

use Drupal\Core\Entity\EntityConstraintViolationListInterface;
use Drupal\Core\DependencyInjection\DependencySerializationTrait;
use Symfony\Component\HttpKernel\Exception\HttpException;

/**
@@ -23,8 +22,6 @@
 */
class UnprocessableHttpEntityException extends HttpException {

  use DependencySerializationTrait;

  /**
   * The constraint violations associated with this exception.
   *