Skip to content
This repository was archived by the owner on Sep 6, 2025. It is now read-only.

Commit 93c0e70

Browse files
committed
Updated collections to new version
1 parent 36cf73b commit 93c0e70

File tree

3 files changed

+11
-11
lines changed

3 files changed

+11
-11
lines changed

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
"require": {
1313
"php": ">=5.6",
1414
"ramsey/uuid": "^3.0",
15-
"easyframework/collections": "^5.0",
15+
"easyframework/collections": "^6.0",
1616
"beberlei/assert": "^2.5"
1717
},
1818
"require-dev": {
Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,28 +2,28 @@
22

33
namespace HelloFresh\Engine\Serializer\Type;
44

5-
use Collections\Dictionary;
5+
use Collections\Map;
66
use Collections\Iterable;
77
use JMS\Serializer\Context;
88
use JMS\Serializer\GraphNavigator;
99
use JMS\Serializer\Handler\SubscribingHandlerInterface;
1010
use JMS\Serializer\VisitorInterface;
1111

12-
class DictionaryHandler implements SubscribingHandlerInterface
12+
class MapHandler implements SubscribingHandlerInterface
1313
{
1414
public static function getSubscribingMethods()
1515
{
1616
return [
1717
[
1818
'direction' => GraphNavigator::DIRECTION_SERIALIZATION,
1919
'format' => 'json',
20-
'type' => 'Dictionary',
20+
'type' => 'Map',
2121
'method' => 'serializeCollection'
2222
],
2323
[
2424
'direction' => GraphNavigator::DIRECTION_DESERIALIZATION,
2525
'format' => 'json',
26-
'type' => 'Dictionary',
26+
'type' => 'Map',
2727
'method' => 'deserializeCollection'
2828
]
2929
];
@@ -43,6 +43,6 @@ public function deserializeCollection(VisitorInterface $visitor, $data, array $t
4343
// See above.
4444
$type['name'] = 'array';
4545

46-
return new Dictionary($data, $type, $context);
46+
return new Map($data, $type, $context);
4747
}
4848
}
Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,28 +2,28 @@
22

33
namespace HelloFresh\Engine\Serializer\Type;
44

5-
use Collections\ArrayList;
5+
use Collections\Vector;
66
use Collections\Iterable;
77
use JMS\Serializer\Context;
88
use JMS\Serializer\GraphNavigator;
99
use JMS\Serializer\Handler\SubscribingHandlerInterface;
1010
use JMS\Serializer\VisitorInterface;
1111

12-
class ArrayListHandler implements SubscribingHandlerInterface
12+
class VectorHandler implements SubscribingHandlerInterface
1313
{
1414
public static function getSubscribingMethods()
1515
{
1616
return [
1717
[
1818
'direction' => GraphNavigator::DIRECTION_SERIALIZATION,
1919
'format' => 'json',
20-
'type' => 'ArrayList',
20+
'type' => 'Vector',
2121
'method' => 'serializeCollection'
2222
],
2323
[
2424
'direction' => GraphNavigator::DIRECTION_DESERIALIZATION,
2525
'format' => 'json',
26-
'type' => 'ArrayList',
26+
'type' => 'Vector',
2727
'method' => 'deserializeCollection'
2828
]
2929
];
@@ -42,6 +42,6 @@ public function deserializeCollection(VisitorInterface $visitor, $data, array $t
4242
// See above.
4343
$type['name'] = 'array';
4444

45-
return new ArrayList($visitor->visitArray($data, $type, $context));
45+
return new Vector($visitor->visitArray($data, $type, $context));
4646
}
4747
}

0 commit comments

Comments
 (0)