Hi guys! I have a specific requirement and need some help
Say i have an external api library with Client class looking like this:
class Client
{
some constants..
private props..,
__construct()
public static function create($url)
{
some code
}
public static function authenticate($token)
{
some code
}
...dozen other methods
}
Current way of instantiating in every single other class where i need the client:
use Client;
MyFetchController
{
private $client;
public function __construct()
{
$this->client = Client::cre