Make AbstractOauth2Action::getHttpClient() non-final
authorTim Düsterhus <duesterhus@woltlab.com>
Sun, 4 Jul 2021 13:35:07 +0000 (15:35 +0200)
committerTim Düsterhus <duesterhus@woltlab.com>
Sun, 4 Jul 2021 13:35:07 +0000 (15:35 +0200)
It might be desirable to be able to add custom headers, specifically a custom
`user-agent`, for non-stock IDPs.

wcfsetup/install/files/lib/action/AbstractOauth2Action.class.php

index b565b7a9ce7fda84b9b5161dff130924dc72444a..5d8e38c240bb61ad7dbd1549ed750d6cf9093234 100644 (file)
@@ -48,7 +48,7 @@ abstract class AbstractOauth2Action extends AbstractAction
      * Returns a "static" instance of the HTTP client to use to allow
      * for TCP connection reuse.
      */
-    final protected function getHttpClient(): ClientInterface
+    protected function getHttpClient(): ClientInterface
     {
         if (!$this->httpClient) {
             $this->httpClient = HttpFactory::makeClientWithTimeout(5);