From f9210d997112899f559773ff267ec878273ae8b8 Mon Sep 17 00:00:00 2001 From: "as2252258@163.com" Date: Fri, 23 Apr 2021 02:33:23 +0800 Subject: [PATCH] modify --- System/Pool/ObjectPool.php | 73 -------------------------------------- System/Process/Process.php | 5 +-- 2 files changed, 1 insertion(+), 77 deletions(-) delete mode 100644 System/Pool/ObjectPool.php diff --git a/System/Pool/ObjectPool.php b/System/Pool/ObjectPool.php deleted file mode 100644 index d1c73060..00000000 --- a/System/Pool/ObjectPool.php +++ /dev/null @@ -1,73 +0,0 @@ -getFromChannel($config, [$config, $construct]); - if (method_exists($object, 'clean')) { - $object->clean(); - } - return $object; - } - - - /** - * @param string $name - * @param mixed $config - * @return mixed - */ - public function createClient(string $name, mixed $config): mixed - { - return call_user_func($config[1]); - } - - - /** - * @param string $name - */ - public function desc(string $name) - { - - } - - /** - * @param string $name - * @param $object - */ - public function release(string $name, mixed $object) - { - $this->push($name, $object); - } - -} diff --git a/System/Process/Process.php b/System/Process/Process.php index cc14e5e7..13aa5a89 100644 --- a/System/Process/Process.php +++ b/System/Process/Process.php @@ -20,10 +20,7 @@ use Swoole\Coroutine\System; abstract class Process extends \Swoole\Process implements SProcess { - /** @var Application $application */ - protected Application $application; - - + /** * Process constructor. * @param $application