/**
  * @param SessionInterface $managerRegistry
  * @param SelectorParser $parser
  */
 public function __construct(ManagerRegistry $managerRegistry, SelectorParser $parser = null)
 {
     parent::__construct($parser);
     $this->managerRegistry = $managerRegistry;
 }
 /**
  * @param SessionInterface $session
  * @param SelectorParser $parser
  */
 public function __construct(SessionInterface $session, SelectorParser $parser = null)
 {
     parent::__construct($parser);
     $this->session = $session;
 }