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