Пример #1
0
 public function __construct(ManagerRegistry $managerRegistry, $basePath = null, FinderInterface $finder = null)
 {
     $finder = $finder ?: new PhpcrOdmTraversalFinder($managerRegistry);
     parent::__construct($finder, $basePath);
     $this->managerRegistry = $managerRegistry;
 }
Пример #2
0
 /**
  * @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;
 }