Skip to content
This repository has been archived by the owner on Feb 17, 2022. It is now read-only.

Commit

Permalink
Allow jms serializer v3 (#4)
Browse files Browse the repository at this point in the history
* Allow jms serializer v3

* make explicit exclusion policy

* add prefer-lowest tests
  • Loading branch information
goetas authored and kunicmarko20 committed May 14, 2019
1 parent e211534 commit f2e5cee
Show file tree
Hide file tree
Showing 8 changed files with 10 additions and 8 deletions.
4 changes: 3 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@ env:
matrix:
fast_finish: true
include:
- php: '7.2'
env: TARGET=unit COMPOSER_FLAGS='--prefer-lowest'
- php: '7.2'
env: TARGET=e2e
- php: '7.2'
Expand Down Expand Up @@ -47,7 +49,7 @@ before_install:
fi
install:
- composer install
- composer update ${COMPOSER_FLAGS}

script:
- make ${TARGET}
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
],
"require": {
"php": "^7.2",
"jms/serializer": "^2.1",
"jms/serializer": "^2.1 || ^3.0",
"symfony/messenger": "^4.2"
},
"require-dev": {
Expand Down
2 changes: 1 addition & 1 deletion src/Resources/config/serializer/JMS.Serializer.Context.xml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<serializer>
<class name="JMS\Serializer\Context">
<class name="JMS\Serializer\Context" exclusion-policy="ALL">
<property name="attributes" type="array" expose="true"/>
<property name="initialized" type="boolean" expose="true"/>
<property name="format" type="string" expose="true"/>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<serializer>
<class name="JMS\Serializer\DeserializationContext">
<class name="JMS\Serializer\DeserializationContext" exclusion-policy="ALL">
<property name="depth" type="integer" expose="true"/>
</class>
</serializer>
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<serializer>
<class name="JMS\Serializer\SerializationContext">
<class name="JMS\Serializer\SerializationContext" exclusion-policy="ALL">
<property name="serializeNull" type="boolean" expose="true"/>
</class>
</serializer>
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<serializer>
<class name="KunicMarko\JMSMessengerAdapter\Stamp\DeserializationContextStamp">
<class name="KunicMarko\JMSMessengerAdapter\Stamp\DeserializationContextStamp" exclusion-policy="ALL">
<property name="context" type="JMS\Serializer\DeserializationContext" expose="true" />
</class>
</serializer>
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<serializer>
<class name="KunicMarko\JMSMessengerAdapter\Stamp\SerializationContextStamp">
<class name="KunicMarko\JMSMessengerAdapter\Stamp\SerializationContextStamp" exclusion-policy="ALL">
<property name="context" type="JMS\Serializer\SerializationContext" expose="true" />
</class>
</serializer>
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<serializer>
<class name="Symfony\Component\Messenger\Stamp\ValidationStamp">
<class name="Symfony\Component\Messenger\Stamp\ValidationStamp" exclusion-policy="ALL">
<property name="groups" type="array" expose="true" />
</class>
</serializer>

0 comments on commit f2e5cee

Please sign in to comment.