コード例 #1
0
 public function __construct(ContainerInterface $container)
 {
     $this->container = $container;
     $matchConfig = $this->container->get('ezpublish.config.resolver')->getParameter('content_comments', 'ez_comments');
     // If there is no matching rule, we consider that commenting is always allowed.
     if (empty($matchConfig)) {
         $this->alwaysMatch = true;
     }
     parent::__construct($this->container->get('ezpublish.api.repository'), $matchConfig);
 }
コード例 #2
0
 public function __construct(ConfigResolverInterface $configResolver, Repository $repository)
 {
     $this->configResolver = $configResolver;
     parent::__construct($repository, $this->configResolver->getParameter('content_view'));
 }
コード例 #3
0
 public function __construct(ConfigResolverInterface $configResolver, Repository $repository)
 {
     @trigger_error("ContentMatcherFactory is deprecated, and will be removed in ezpublish-kernel 6.1.\n" . 'Use the ServiceAwareMatcherFactory with the relative namespace as a constructor argument.', E_USER_DEPRECATED);
     $this->configResolver = $configResolver;
     parent::__construct($repository, $this->configResolver->getParameter('content_view'));
 }