barryosull/valueobjects · Deserializer.php
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);
    }
Similar code snippets
1.
martyn82/apha · SagaSerializer.php
Match rating: 68.9% · See similar code snippets
php logo
public function deserialize(string $data, string $type)
    {
        /* @var $deserialized Saga */
        $deserialized = $this->serializer->deserialize($data, $type);
        $this->factory->hydrate($deserialized);
        return $deserialized;
    }
2.
maximegosselin/serializer · ArrayDeserializeStrategy.php
Match rating: 67.29% · 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;
    }
3.
infomaniac-amf/php · AMF.php
Match rating: 66.41% · 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;
        }
    }
4.
giftcards/Encryption · SerializerDeserializerBuilder.php
Match rating: 66.15% · See similar code snippets
php logo
public function addDeserializer($deserializer, array $options = array())
    {
        if (!$deserializer instanceof DeserializerInterface) {
            $deserializer = $this->deserializerFactory->create($deserializer, $options);
        }
        
        $this->deserializers[] = $deserializer;
        return $this;
    }
5.
JurJean/SpraySerializer · BoundClosureSerializer.php
Match rating: 65.57% · See similar code snippets
php logo
protected function deserializer()
    {
        if (null === $this->deserializer) {
            $self = $this;
            $this->deserializer = Closure::bind($this->bindDeserializer(), null, $this->class);
        }
        return $this->deserializer;
    }
6.
phpactor/config-loader · Deserializers.php
Match rating: 65.11% · See similar code snippets
php logo
public function get(string $extension): Deserializer
    {
        if (!isset($this->deserializerMap[$extension])) {
            throw new DeserializerNotFound(sprintf(
                'No deserializer registered for extension "%s", deserializers available for: "%s"',
                $extension,
                implode('", "', array_keys($this->deserializerMap))
            ));
        }

        return $this->deserializerMap[$extension];
    }
7.
chemisus/provider · JsonSerializer.php
Match rating: 65.04% · See similar code snippets
php logo
public function deserialize($string)
    {
        return json_decode($string, $this->deserializeAssoc, $this->deserializeDepth, $this->deserializeOptions);
    }
8.
ProjetPP/PPP-datamodel-PHP · DeserializerFactory.php
Match rating: 64.8% · See similar code snippets
php logo
private function buildNodeDeserializer(array $customResourceNodesDeserializers) {
		$resourceNodeDeserializer = $this->buildResourceNodeDeserializer($customResourceNodesDeserializers);
		return new DispatchingDeserializer(array(
			new MissingNodeDeserializer(),
			new TripleNodeDeserializer($this),
			new UnionNodeDeserializer($this),
			new IntersectionNodeDeserializer($this),
			new FirstNodeDeserializer($this),
			new LastNodeDeserializer($this),
			new SentenceNodeDeserializer(),
			new SortNodeDeserializer($this, $resourceNodeDeserializer),
			new ResourceListNodeDeserializer($resourceNodeDeserializer),
			new ResourceAsResourceListNodeDeserializer($resourceNodeDeserializer)
		));
	}
9.
24HOURSMEDIA/tesla-esync · SqsNotificationReceiver.php
Match rating: 64.61% · See similar code snippets
php logo
function getDeserializer()
    {
        if (!$this->deserializer) {
            $this->deserializer = new JsonMessageDeserializer($this->getMessageFactory());
        }

        return $this->deserializer;
    }
10.
eosnewmedia/ShopwareSdk · EntryPoint.php
Match rating: 64.41% · See similar code snippets
php logo
public function addDeserializer(JsonDeserializerInterface $deserializer): EntryPoint
    {
        foreach ($deserializer->getSupportedTypes() as $type) {
            $this->deserializers[$type] = $deserializer;
        }

        return $this;
    }