/** * OrderRepository constructor. * @param $enableCache * @param CacheItemPoolInterface $cache * @param Client $client * @param MapperFactory $mapperFactory * @param Session $session */ public function __construct($enableCache, CacheItemPoolInterface $cache, Client $client, MapperFactory $mapperFactory, Session $session) { parent::__construct($enableCache, $cache, $client, $mapperFactory); $this->session = $session; }
public function __construct($enableCache, CacheItemPoolInterface $cache, Client $client, MapperFactory $mapperFactory, Search $searchModel) { $this->searchModel = $searchModel; parent::__construct($enableCache, $cache, $client, $mapperFactory); }