2013-04-09 04:32:49 +00:00
|
|
|
services:
|
|
|
|
serializer:
|
|
|
|
class: Symfony\Component\Serializer\Serializer
|
|
|
|
arguments: [{ }, { }]
|
2014-02-28 10:36:02 +00:00
|
|
|
serializer.normalizer.config_entity:
|
|
|
|
class: Drupal\serialization\Normalizer\ConfigEntityNormalizer
|
|
|
|
tags:
|
|
|
|
- { name: normalizer }
|
2019-01-11 14:13:39 +00:00
|
|
|
arguments: ['@entity_type.manager', '@entity_type.repository', '@entity_field.manager']
|
2014-12-05 10:48:00 +00:00
|
|
|
serializer.normalizer.content_entity:
|
2019-01-11 14:13:39 +00:00
|
|
|
class: Drupal\serialization\Normalizer\ContentEntityNormalizer
|
|
|
|
tags:
|
|
|
|
- { name: normalizer }
|
|
|
|
arguments: ['@entity_type.manager', '@entity_type.repository', '@entity_field.manager']
|
2014-01-22 08:21:45 +00:00
|
|
|
serializer.normalizer.entity:
|
|
|
|
class: Drupal\serialization\Normalizer\EntityNormalizer
|
|
|
|
tags:
|
|
|
|
- { name: normalizer }
|
2019-01-11 14:13:39 +00:00
|
|
|
arguments: ['@entity_type.manager', '@entity_type.repository', '@entity_field.manager']
|
Issue #2751325 by damiankloip, Grayside, dawehner, Wim Leers, catch, tedbow, alexpott, himanshu-dixit, Jo Fitzgerald, xjm, andrewbelcher, skyredwang, effulgentsia, hampercm, eelkeblok: All serialized values are strings, should be integers/booleans when appropriate
2017-02-28 16:13:35 +00:00
|
|
|
serializer.normalizer.primitive_data:
|
|
|
|
class: Drupal\serialization\Normalizer\PrimitiveDataNormalizer
|
|
|
|
tags:
|
|
|
|
- { name: normalizer, priority: 5, bc: bc_primitives_as_strings, bc_config_name: 'serialization.settings' }
|
2013-04-09 04:32:49 +00:00
|
|
|
serializer.normalizer.complex_data:
|
|
|
|
class: Drupal\serialization\Normalizer\ComplexDataNormalizer
|
|
|
|
tags:
|
|
|
|
- { name: normalizer }
|
2015-09-26 13:33:59 +00:00
|
|
|
serializer.normalizer.entity_reference_field_item:
|
|
|
|
class: Drupal\serialization\Normalizer\EntityReferenceFieldItemNormalizer
|
|
|
|
tags:
|
2015-10-05 14:13:46 +00:00
|
|
|
# Set the priority lower than the hal entity reference field item
|
2016-12-21 09:58:53 +00:00
|
|
|
# normalizer, so that we do not replace that for hal_json but higher than
|
|
|
|
# this modules generic field item normalizer.
|
2015-10-05 14:13:46 +00:00
|
|
|
# @todo Find a better way for this in https://www.drupal.org/node/2575761.
|
2016-12-21 09:58:53 +00:00
|
|
|
- { name: normalizer, priority: 8 }
|
2017-04-11 12:48:21 +00:00
|
|
|
arguments: ['@entity.repository']
|
2016-12-21 09:58:53 +00:00
|
|
|
serialization.normalizer.field_item:
|
|
|
|
class: Drupal\serialization\Normalizer\FieldItemNormalizer
|
|
|
|
tags:
|
|
|
|
# Priority must be lower than serializer.normalizer.field_item.hal and any
|
|
|
|
# field type specific normalizer such as
|
|
|
|
# serializer.normalizer.entity_reference_field_item.
|
|
|
|
- { name: normalizer, priority: 6 }
|
|
|
|
serialization.normalizer.field:
|
|
|
|
class: Drupal\serialization\Normalizer\FieldNormalizer
|
|
|
|
tags:
|
|
|
|
# Priority must be lower than serializer.normalizer.field.hal.
|
|
|
|
- { name: normalizer, priority: 6 }
|
2013-04-09 04:32:49 +00:00
|
|
|
serializer.normalizer.list:
|
|
|
|
class: Drupal\serialization\Normalizer\ListNormalizer
|
|
|
|
tags:
|
2016-12-21 09:58:53 +00:00
|
|
|
# Priority must be higher than serialization.normalizer.field but less
|
|
|
|
# than hal field normalizer.
|
|
|
|
- { name: normalizer, priority: 9 }
|
2017-05-24 20:47:56 +00:00
|
|
|
serializer.normalizer.timestamp_item:
|
|
|
|
class: Drupal\serialization\Normalizer\TimestampItemNormalizer
|
|
|
|
tags:
|
|
|
|
# Priority must be higher than serializer.normalizer.field_item and lower
|
|
|
|
# than hal normalizers.
|
|
|
|
- { name: normalizer, priority: 8, bc: bc_timestamp_normalizer_unix, bc_config_name: 'serialization.settings' }
|
Issue #2926508 by Wim Leers, mpdonadio, joelstein, tacituseu, jhedstrom, effulgentsia, tedbow, mradcliffe, borisson_, dawehner, larowlan: Add DateTimeNormalizer+TimestampNormalizer, deprecate TimestampItemNormalizer: @DataType-level normalizers are reusable by JSON:API
2019-02-15 23:13:43 +00:00
|
|
|
serializer.normalizer.timestamp:
|
|
|
|
class: Drupal\serialization\Normalizer\TimestampNormalizer
|
|
|
|
arguments: ['@config.factory']
|
|
|
|
tags:
|
|
|
|
# Priority must be higher than serializer.normalizer.primitive_data.
|
|
|
|
- { name: normalizer, priority: 20, bc: bc_timestamp_normalizer_unix, bc_config_name: 'serialization.settings' }
|
|
|
|
serializer.normalizer.datetimeiso8601:
|
|
|
|
class: \Drupal\serialization\Normalizer\DateTimeIso8601Normalizer
|
|
|
|
arguments: ['@config.factory']
|
|
|
|
tags:
|
|
|
|
# Priority must be higher than serializer.normalizer.primitive_data.
|
|
|
|
- { name: normalizer, priority: 20 }
|
2015-02-12 23:08:28 +00:00
|
|
|
serializer.normalizer.password_field_item:
|
|
|
|
class: Drupal\serialization\Normalizer\NullNormalizer
|
|
|
|
arguments: ['Drupal\Core\Field\Plugin\Field\FieldType\PasswordItem']
|
|
|
|
tags:
|
|
|
|
- { name: normalizer, priority: 20 }
|
2015-08-13 11:33:54 +00:00
|
|
|
serializer.normalizer.safe_string:
|
2015-10-01 23:25:03 +00:00
|
|
|
class: Drupal\serialization\Normalizer\MarkupNormalizer
|
2015-08-13 11:33:54 +00:00
|
|
|
tags:
|
|
|
|
- { name: normalizer }
|
2013-04-09 04:32:49 +00:00
|
|
|
serializer.normalizer.typed_data:
|
|
|
|
class: Drupal\serialization\Normalizer\TypedDataNormalizer
|
|
|
|
tags:
|
|
|
|
- { name: normalizer }
|
|
|
|
serializer.encoder.json:
|
|
|
|
class: Drupal\serialization\Encoder\JsonEncoder
|
|
|
|
tags:
|
|
|
|
- { name: encoder, format: json }
|
|
|
|
serializer.encoder.xml:
|
|
|
|
class: Drupal\serialization\Encoder\XmlEncoder
|
|
|
|
tags:
|
|
|
|
- { name: encoder, format: xml }
|
2013-04-17 00:44:21 +00:00
|
|
|
serializer.entity_resolver:
|
|
|
|
class: Drupal\serialization\EntityResolver\ChainEntityResolver
|
|
|
|
serializer.entity_resolver.uuid:
|
|
|
|
class: Drupal\serialization\EntityResolver\UuidResolver
|
|
|
|
tags:
|
|
|
|
- { name: entity_resolver}
|
2018-05-11 14:20:00 +00:00
|
|
|
arguments: ['@entity.repository']
|
2014-03-25 10:40:34 +00:00
|
|
|
serialization.entity_resolver.target_id:
|
|
|
|
class: Drupal\serialization\EntityResolver\TargetIdResolver
|
|
|
|
tags:
|
|
|
|
- { name: entity_resolver}
|
Issue #2403307 by dawehner, marthinal, tedbow, clemens.tolboom, Wim Leers, neclimdul, Crell, klausi, andypost, e0ipso: RPC endpoints for user authentication: log in, check login status, log out
2016-07-28 17:54:03 +00:00
|
|
|
serialization.exception.default:
|
|
|
|
class: Drupal\serialization\EventSubscriber\DefaultExceptionSubscriber
|
|
|
|
tags:
|
|
|
|
- { name: event_subscriber }
|
|
|
|
arguments: ['@serializer', '%serializer.formats%']
|
|
|
|
serialization.user_route_alter_subscriber:
|
|
|
|
class: Drupal\serialization\EventSubscriber\UserRouteAlterSubscriber
|
|
|
|
tags:
|
|
|
|
- { name: event_subscriber }
|
2017-01-11 11:25:29 +00:00
|
|
|
arguments: ['%serializer.formats%']
|
Issue #2751325 by damiankloip, Grayside, dawehner, Wim Leers, catch, tedbow, alexpott, himanshu-dixit, Jo Fitzgerald, xjm, andrewbelcher, skyredwang, effulgentsia, hampercm, eelkeblok: All serialized values are strings, should be integers/booleans when appropriate
2017-02-28 16:13:35 +00:00
|
|
|
serialization.bc_config_subscriber:
|
|
|
|
class: Drupal\serialization\EventSubscriber\BcConfigSubscriber
|
|
|
|
tags:
|
|
|
|
- { name: event_subscriber }
|
|
|
|
arguments: ['@kernel']
|