/**
  * @param StoreClient $storeClient
  * @param StructHydrator $structHydrator
  * @param \Shopware_Components_Snippet_Manager $snippetManager
  * @param ModelManager $entityManager
  * @param GuzzleFactory $guzzleFactory
  * @param String $apiEndPoint
  * @internal param ClientInterface $guzzleHttpClient
  */
 public function __construct(StoreClient $storeClient, StructHydrator $structHydrator, \Shopware_Components_Snippet_Manager $snippetManager, ModelManager $entityManager, GuzzleFactory $guzzleFactory, $apiEndPoint)
 {
     $this->storeClient = $storeClient;
     $this->hydrator = $structHydrator;
     $this->snippetManager = $snippetManager;
     $this->entityManager = $entityManager;
     $this->guzzleHttpClient = $guzzleFactory->createClient();
     $this->apiEndPoint = $apiEndPoint;
 }
Example #2
0
 /**
  * standard constructor
  *
  * @param Connection $connection
  * @param Logger $logger
  */
 public function __construct(Connection $connection, Logger $logger, GuzzleFactory $guzzleFactory)
 {
     $this->connection = $connection;
     $this->logger = $logger;
     $this->guzzleClient = $guzzleFactory->createClient();
 }
Example #3
0
 /**
  * @param GuzzleFactory $guzzleFactory
  */
 public function __construct(GuzzleFactory $guzzleFactory)
 {
     $this->guzzleClient = $guzzleFactory->createClient();
 }