Release dependency from aldarien/contract

This commit is contained in:
2021-02-09 17:25:17 -03:00
parent 2799988084
commit 0eb8eb2800
2 changed files with 8 additions and 5 deletions

View File

@ -1,17 +1,21 @@
<?php
namespace App\Contract;
use App\Definition\Contract;
use App\Service\Auth as AuthService;
class Auth
{
use Contract;
protected static function newInstance()
{
return new AuthService();
}
protected $instance;
protected static function getInstance() {
if (self::$instance === null) {
self::$instance = self::newInstance();
}
return self::$instance;
}
public static function __callStatic($name, $params)
{
if (!method_exists(Response::class, $name)) {

View File

@ -10,7 +10,6 @@
}
],
"require": {
"aldarien/contract": "^1"
},
"require-dev": {
"phpunit/phpunit": "^8"