public function __construct(Repository $config, AlgoliaFactory $factory) { parent::__construct($config); $this->factory = $factory; }