martyn82/apha · SagaSerializer.php
php logo
public function deserialize(string $data, string $type)
    {
        /* @var $deserialized Saga */
        $deserialized = $this->serializer->deserialize($data, $type);
        $this->factory->hydrate($deserialized);
        return $deserialized;
    }
Similar code snippets
1.
maximegosselin/serializer · ArrayDeserializeStrategy.php
Match rating: 73.51% · See similar code snippets
php logo
public function deserialize(array $data)
    {
        $this->assertValidData($data);

        $payload = $data['payload'];
        $deserializer = $this->deserializer;
        array_walk($payload, function (&$value) use ($deserializer) {
            $value = $deserializer->deserialize($value);
        });

        return $payload;
    }
2.
maximegosselin/serializer · Engine.php
Match rating: 71.96% · See similar code snippets
php logo
public function deserialize(array $data)
    {
        /** @var DeserializeStrategyInterface $strategy */
        foreach ($this->deserializeStrategies as $strategy) {
            if ($strategy->canDeserialize($data)) {
                return $strategy->deserialize($data);
            }
        }

        throw new DeserializationException('Could not deserialize data.');
    }
3.
chemisus/provider · JsonSerializer.php
Match rating: 71.8% · See similar code snippets
php logo
public function deserialize($string)
    {
        return json_decode($string, $this->deserializeAssoc, $this->deserializeDepth, $this->deserializeOptions);
    }
4.
infomaniac-amf/php · AMF.php
Match rating: 71.47% · See similar code snippets
php logo
public static function deserialize($data, $forceType = null)
    {
        try {
            self::init();

            $stream       = new Input($data);
            $deserializer = new Deserializer($stream);

            return $deserializer->deserialize($forceType);
        } catch (Exception $e) {
            $ex = new DeserializationException($e->getMessage(), $e->getCode(), $e);
            $ex->setData($data);
            throw $ex;
        }
    }
5.
aboutcoders/job-bundle · Serializer.php
Match rating: 70.58% · See similar code snippets
php logo
public function deserialize($data, $type, $format, DeserializationContext $context = null)
    {
        return $this->serializer->deserialize($data, $type, $format, $context);
    }
6.
issei-m/simple-job-queue · Queue.php
Match rating: 70.42% · See similar code snippets
php logo
public function dequeue(): ?Job
    {
        $this->checkDelayed();

        $deserialized = $this->redis->lpop($this->key);
        if (null === $deserialized) {
            return null;
        }

        return $this->serializer->deserialize(\json_decode($deserialized, true));
    }
7.
pauci/cqrs · JmsSerializer.php
Match rating: 69.21% · See similar code snippets
php logo
public function deserialize($data, $type)
    {
        return $this->serializer->deserialize($data, $type, $this->format);
    }
8.
giftcards/Encryption · ChainSerializerDeserializer.php
Match rating: 69.14% · See similar code snippets
php logo
public function deserialize($string)
    {
        $this->sortDeserializers();
        foreach ($this->sortedDeserializers as $serializer) {
            if ($serializer->canDeserialize($string)) {
                return $serializer->deserialize($string);
            }
        }

        throw new FailedToDeserializeException($string);
    }
9.
barryosull/valueobjects · Deserializer.php
Match rating: 68.9% · See similar code snippets
php logo
public function deserialize($class, $parameters)
    {
        if ($this->extensionRepository->isExtension($class)) {
            $deserializer = $this->extensionRepository->fetch($class);
        } else {
            $deserializer = $this->deserializer_repo_fetch($class);
        }

        return $deserializer->deserialize($class, $parameters);
    }
10.
qandidate-labs/qandidate-toggle · ToggleSerializer.php
Match rating: 68.56% · See similar code snippets
php logo
private function deserializeConditions(array $conditions)
    {
        $deserialized = array();

        foreach ($conditions as $condition) {
            $deserialized[] = $this->operatorConditionSerializer->deserialize($condition);
        }

        return $deserialized;
    }