forked from wallabag/wallabag
Migrate to readonly properties
This commit is contained in:
@ -18,8 +18,8 @@ class Authenticator implements LoggerAwareInterface
|
||||
private $logger;
|
||||
|
||||
public function __construct(
|
||||
private SiteConfigBuilder $configBuilder,
|
||||
private LoginFormAuthenticator $authenticator,
|
||||
private readonly SiteConfigBuilder $configBuilder,
|
||||
private readonly LoginFormAuthenticator $authenticator,
|
||||
) {
|
||||
$this->logger = new NullLogger();
|
||||
}
|
||||
|
||||
@ -11,13 +11,13 @@ use Symfony\Contracts\HttpClient\ResponseStreamInterface;
|
||||
|
||||
class WallabagClient implements HttpClientInterface
|
||||
{
|
||||
private HttpClientInterface $httpClient;
|
||||
private readonly HttpClientInterface $httpClient;
|
||||
|
||||
public function __construct(
|
||||
private $restrictedAccess,
|
||||
private HttpBrowser $browser,
|
||||
private Authenticator $authenticator,
|
||||
private LoggerInterface $logger,
|
||||
private readonly HttpBrowser $browser,
|
||||
private readonly Authenticator $authenticator,
|
||||
private readonly LoggerInterface $logger,
|
||||
) {
|
||||
$this->httpClient = HttpClient::create([
|
||||
'timeout' => 10,
|
||||
|
||||
Reference in New Issue
Block a user