Oauth - Remove redundant constructor overrides
authorcolemanw <coleman@civicrm.org>
Mon, 2 Oct 2023 18:40:35 +0000 (14:40 -0400)
committercolemanw <coleman@civicrm.org>
Mon, 2 Oct 2023 18:52:13 +0000 (14:52 -0400)
ext/oauth-client/Civi/Api4/Action/OAuthClient/AbstractGrantAction.php
ext/oauth-client/Civi/Api4/Action/OAuthSysToken/Refresh.php

index a5b2240cad177da9a70be1025a2511ed386e3443..bc9106e332651125cbb21d905072b333eb4f8ca8 100644 (file)
@@ -47,10 +47,6 @@ abstract class AbstractGrantAction extends \Civi\Api4\Generic\AbstractBatchActio
    */
   private $clientDef = NULL;
 
-  public function __construct($entityName, $actionName) {
-    parent::__construct($entityName, $actionName, ['*']);
-  }
-
   /**
    * @throws \CRM_Core_Exception
    */
index 3c75a945564bc47f0a58a47d3c822a62e62e93b3..5f7164e9cdf01c2fcc17bba67ad102762d0b6f50 100644 (file)
@@ -41,10 +41,6 @@ class Refresh extends BasicBatchAction {
   private $selectFields = ['id', 'client_id', 'access_token', 'refresh_token', 'expires', 'token_type', 'raw'];
   private $providers = [];
 
-  public function __construct($entityName, $actionName) {
-    parent::__construct($entityName, $actionName);
-  }
-
   protected function getSelect() {
     return $this->selectFields;
   }