Lines Matching refs:this
24 $this->mpdf = $mpdf;
25 $this->logger = $logger;
30 $this->logger->debug(sprintf('Fetching (cURL) content of remote URL "%s"', $url), ['context' => LogContext::REMOTE_CONTENT]);
34 curl_setopt($ch, CURLOPT_USERAGENT, $this->mpdf->curlUserAgent);
38 curl_setopt($ch, CURLOPT_CONNECTTIMEOUT, $this->mpdf->curlTimeout);
40 if ($this->mpdf->curlExecutionTimeout) {
41 curl_setopt($ch, CURLOPT_TIMEOUT, $this->mpdf->curlExecutionTimeout);
44 if ($this->mpdf->curlFollowLocation) {
48 if ($this->mpdf->curlAllowUnsafeSslRequests) {
53 if ($this->mpdf->curlCaCertificate && is_file($this->mpdf->curlCaCertificate)) {
54 curl_setopt($ch, CURLOPT_CAINFO, $this->mpdf->curlCaCertificate);
57 if ($this->mpdf->curlProxy) {
58 curl_setopt($ch, CURLOPT_PROXY, $this->mpdf->curlProxy);
59 if ($this->mpdf->curlProxyAuth) {
60 curl_setopt($ch, CURLOPT_PROXYUSERPWD, $this->mpdf->curlProxyAuth);
68 $this->logger->error($message, ['context' => LogContext::REMOTE_CONTENT]);
70 if ($this->mpdf->debug) {
78 $this->logger->error($message, ['context' => LogContext::REMOTE_CONTENT]);
80 if ($this->mpdf->debug) {
92 $this->logger->debug(sprintf('Fetching (socket) content of remote URL "%s"', $url), ['context' => LogContext::REMOTE_CONTENT]);
114 $this->logger->error(sprintf('Socket error "%s": "%s"', $errno, $errstr), ['context' => LogContext::REMOTE_CONTENT]);
150 $this->logger = $logger;