Пример #1
0
 /**
  * @param RequestBrokerFactory $brokerFactory
  * @param RequestResponseFactory $responseFactory
  */
 public function __construct(ConfigsFactory $configsFactory, RequestBrokerFactory $brokerFactory, RequestResponseFactory $responseFactory, HttpRequest $httpRequest, CookieJarContract $cookieJar)
 {
     $this->configs = $configsFactory->getFromConfigFile();
     $this->broker = $brokerFactory->make($this->configs);
     $this->responseFactory = $responseFactory;
     $this->httpRequest = $httpRequest;
     $this->cookieJar = $cookieJar;
     $this->encrypter = new Encrypter($this->configs->getKey(), 'AES-256-CBC');
 }