Issue #3231040 by Anul, longwave, alexpott, bbrala: Remove DependencySerializationTrait from JSON API exceptions
parent
2e1102931e
commit
06e7f027d8
|
@ -5,7 +5,6 @@ namespace Drupal\jsonapi\Exception;
|
|||
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 @@ use Drupal\jsonapi\JsonApiResource\ResourceIdentifierTrait;
|
|||
*/
|
||||
class EntityAccessDeniedHttpException extends CacheableAccessDeniedHttpException implements ResourceIdentifierInterface {
|
||||
|
||||
use DependencySerializationTrait;
|
||||
use ResourceIdentifierTrait;
|
||||
|
||||
/**
|
||||
|
|
|
@ -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 @@ use Symfony\Component\HttpKernel\Exception\HttpException;
|
|||
*/
|
||||
class UnprocessableHttpEntityException extends HttpException {
|
||||
|
||||
use DependencySerializationTrait;
|
||||
|
||||
/**
|
||||
* The constraint violations associated with this exception.
|
||||
*
|
||||
|
|
Loading…
Reference in New Issue