mirror of
https://github.com/wallabag/wallabag.git
synced 2025-08-11 17:51:02 +00:00
Migrate to readonly properties
This commit is contained in:
parent
a107773c11
commit
ca018c77e3
71 changed files with 203 additions and 199 deletions
|
@ -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,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue