Skip to content
This repository has been archived by the owner on Mar 23, 2024. It is now read-only.

Commit

Permalink
:octocat: add OAuthProvider::construct() pseudo constructor
Browse files Browse the repository at this point in the history
  • Loading branch information
codemasher committed Mar 5, 2024
1 parent 98777b4 commit 9f7b6e7
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions src/Core/OAuthProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,16 @@ public function __construct(
){
$this->serviceName = (new ReflectionClass($this))->getShortName();
$this->storage->setServiceName($this->serviceName);

$this->construct();
}

/**
* A replacement constructor that you can call in extended classes,
* so that you don't have to implement the monstrous original `__construct()`
*/
protected function construct():void{
// noop
}

/**
Expand Down

0 comments on commit 9f7b6e7

Please sign in to comment.