Skip to content

Commit

Permalink
去掉create方法
Browse files Browse the repository at this point in the history
  • Loading branch information
lisijie committed Jul 5, 2018
1 parent 57435b5 commit deb57e7
Showing 1 changed file with 1 addition and 10 deletions.
11 changes: 1 addition & 10 deletions src/Core/AbstractService.php
Original file line number Diff line number Diff line change
Expand Up @@ -44,20 +44,11 @@ public final static function getInstance()
{
$cls = get_called_class();
if (!array_key_exists($cls, static::$instances)) {
static::$instances[$cls] = self::create();
static::$instances[$cls] = new static();
}
return static::$instances[$cls];
}

/**
* 创建实例
* @return static
*/
public final static function create()
{
return new static();
}

/**
* 初始化方法
*/
Expand Down

0 comments on commit deb57e7

Please sign in to comment.