Пример #1
0
 /**
  * @param CategoryCollectionFactory $postCollectionFactory
  * @param Config                    $config
  * @param FilterProvider            $filterProvider
  * @param Registry                  $registry
  * @param Context                   $context
  */
 public function __construct(CategoryCollectionFactory $postCollectionFactory, Config $config, FilterProvider $filterProvider, Registry $registry, Context $context)
 {
     $this->categoryCollectionFactory = $postCollectionFactory;
     $this->config = $config;
     $this->filterProvider = $filterProvider;
     parent::__construct($config, $registry, $context);
 }
Пример #2
0
 /**
  * @param PostCollectionFactory $postCollectionFactory
  * @param Config                $config
  * @param Registry              $registry
  * @param Context               $context
  */
 public function __construct(PostCollectionFactory $postCollectionFactory, Config $config, Registry $registry, Context $context)
 {
     $this->postCollectionFactory = $postCollectionFactory;
     parent::__construct($config, $registry, $context);
 }