public function __construct(ManagerRegistry $managerRegistry, $basePath = null, FinderInterface $finder = null)
 {
     $finder = $finder ?: new PhpcrOdmTraversalFinder($managerRegistry);
     parent::__construct($finder, $basePath);
     $this->managerRegistry = $managerRegistry;
 }
 /**
  * @param SessionInterface $session
  * @param string           $basePath
  * @param FinderInterface  $finder
  */
 public function __construct(SessionInterface $session, $basePath = null, FinderInterface $finder = null)
 {
     $finder = $finder ?: new PhpcrTraversalFinder($session);
     parent::__construct($finder, $basePath);
     $this->session = $session;
 }