forked from wallabag/wallabag
Migrate to constructor promoted properties
This commit is contained in:
@ -11,19 +11,14 @@ use Symfony\Contracts\HttpClient\ResponseStreamInterface;
|
||||
|
||||
class WallabagClient implements HttpClientInterface
|
||||
{
|
||||
private $restrictedAccess;
|
||||
private HttpClientInterface $httpClient;
|
||||
private HttpBrowser $browser;
|
||||
private Authenticator $authenticator;
|
||||
private LoggerInterface $logger;
|
||||
|
||||
public function __construct($restrictedAccess, HttpBrowser $browser, Authenticator $authenticator, LoggerInterface $logger)
|
||||
{
|
||||
$this->restrictedAccess = $restrictedAccess;
|
||||
$this->browser = $browser;
|
||||
$this->authenticator = $authenticator;
|
||||
$this->logger = $logger;
|
||||
|
||||
public function __construct(
|
||||
private $restrictedAccess,
|
||||
private HttpBrowser $browser,
|
||||
private Authenticator $authenticator,
|
||||
private LoggerInterface $logger,
|
||||
) {
|
||||
$this->httpClient = HttpClient::create([
|
||||
'timeout' => 10,
|
||||
]);
|
||||
|
||||
Reference in New Issue
Block a user