예제 #1
0
 /**
  * Ctor
  *
  * @param \Trismegiste\Yuurei\Persistence\RepositoryInterface $repo
  * @param \Symfony\Component\Security\Core\SecurityContextInterface $ctx
  * @param array $aliases a list a class key => FQCN for each document
  * @param int $cappedCommentary
  */
 public function __construct(RepositoryInterface $repo, SecurityContextInterface $ctx, array $aliases, $cappedCommentary = null)
 {
     parent::__construct($repo, $ctx);
     $this->aliasFilter = [MapAlias::CLASS_KEY => ['$in' => array_keys($aliases)]];
     $this->classAlias = $aliases;
     $this->cappedLimitForCommentaries = $cappedCommentary;
 }
예제 #2
0
 public function __construct(RepositoryInterface $repo, SecurityContextInterface $ctx, $alias)
 {
     parent::__construct($repo, $ctx);
     $this->classKey = $alias;
 }