We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b4c3054 commit ec33375Copy full SHA for ec33375
src/FeedIo/Adapter/Client.php
@@ -12,13 +12,9 @@
12
class Client implements ClientInterface
13
{
14
public const DEFAULT_USER_AGENT = 'Mozilla/5.0 (X11; U; Linux i686; fr; rv:1.9.1.1) Gecko/20090715 Firefox/3.5.1';
15
- private PsrClientInterface $client;
16
- private string $userAgent;
17
18
- public function __construct(PsrClientInterface $client, string $userAgent)
+ public function __construct(private PsrClientInterface $client, private string $userAgent = self::DEFAULT_USER_AGENT)
19
20
- $this->client = $client;
21
- $this->userAgent = $userAgent;
22
}
23
24
/**
0 commit comments