Example #1
0
 private function visit(VisitorInterface $visitor, Context $context, $data, $format, Type $type = null)
 {
     $data = $visitor->prepare($data);
     $context->initialize($format, $visitor, $this->navigator, $this->factory);
     $visitor->setNavigator($this->navigator);
     $this->navigator->accept($data, $type, $context);
     return $visitor->getResult();
 }
 public function initialize($format, VisitorInterface $visitor, GraphNavigator $navigator, MetadataFactoryInterface $factory)
 {
     parent::initialize($format, $visitor, $navigator, $factory);
     $this->visitingSet = new \SplObjectStorage();
 }