deleted dependency by internal abstract class (#7)
Co-authored-by: Akolzin Dmitry <akolzin@retailcrm.ru>
This commit is contained in:
parent
8887145377
commit
b0e69213da
@ -12,6 +12,7 @@ use JMS\Serializer\AbstractVisitor;
|
||||
use JMS\Serializer\Exception\LogicException;
|
||||
use JMS\Serializer\Exception\NotAcceptableException;
|
||||
use JMS\Serializer\Exception\RuntimeException;
|
||||
use JMS\Serializer\GraphNavigatorInterface;
|
||||
use JMS\Serializer\Metadata\ClassMetadata;
|
||||
use JMS\Serializer\Metadata\PropertyMetadata;
|
||||
use JMS\Serializer\Visitor\DeserializationVisitorInterface;
|
||||
@ -24,7 +25,7 @@ use SplStack;
|
||||
* @category JsonDeserializationVisitor
|
||||
* @package RetailCrm\Component\JMS\Visitor\Deserialization
|
||||
*/
|
||||
class JsonDeserializationVisitor extends AbstractVisitor implements DeserializationVisitorInterface
|
||||
class JsonDeserializationVisitor implements DeserializationVisitorInterface
|
||||
{
|
||||
/**
|
||||
* @var int
|
||||
@ -46,6 +47,11 @@ class JsonDeserializationVisitor extends AbstractVisitor implements Deserializat
|
||||
*/
|
||||
private $currentObject;
|
||||
|
||||
/**
|
||||
* @var GraphNavigatorInterface
|
||||
*/
|
||||
protected $navigator;
|
||||
|
||||
public function __construct(
|
||||
int $options = 0,
|
||||
int $depth = 512
|
||||
@ -308,4 +314,9 @@ class JsonDeserializationVisitor extends AbstractVisitor implements Deserializat
|
||||
throw new RuntimeException('Could not decode JSON.');
|
||||
}
|
||||
}
|
||||
|
||||
public function setNavigator(GraphNavigatorInterface $navigator): void
|
||||
{
|
||||
$this->navigator = $navigator;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user