From deb57e7417deef67a9ca3e930d5f6226a50270e9 Mon Sep 17 00:00:00 2001 From: "jesse.li" Date: Thu, 5 Jul 2018 13:49:54 +0800 Subject: [PATCH] =?UTF-8?q?=E5=8E=BB=E6=8E=89create=E6=96=B9=E6=B3=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/Core/AbstractService.php | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) diff --git a/src/Core/AbstractService.php b/src/Core/AbstractService.php index 29a1fcf..181ea7e 100644 --- a/src/Core/AbstractService.php +++ b/src/Core/AbstractService.php @@ -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(); - } - /** * 初始化方法 */