From 298f25dc3cbfe1552f810651a9f4a45ba22781e3 Mon Sep 17 00:00:00 2001 From: yggverse Date: Fri, 2 Aug 2024 22:04:42 +0300 Subject: [PATCH] optimize namespaces --- src/Model/Connection.php | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) diff --git a/src/Model/Connection.php b/src/Model/Connection.php index 365b869d..cb91d923 100644 --- a/src/Model/Connection.php +++ b/src/Model/Connection.php @@ -6,11 +6,6 @@ namespace Yggverse\Yoda\Model; use \Yggverse\Net\Address; -use \Yggverse\Yoda\Model\Connection\File; -use \Yggverse\Yoda\Model\Connection\Gemini; -use \Yggverse\Yoda\Model\Connection\Nex; -use \Yggverse\Yoda\Model\Filesystem; - class Connection extends \Yggverse\Yoda\Abstract\Model\Connection { public function request( @@ -28,7 +23,7 @@ class Connection extends \Yggverse\Yoda\Abstract\Model\Connection { case 'file': - (new File($this))->request( + (new Connection\File($this))->request( $address ); @@ -40,7 +35,7 @@ class Connection extends \Yggverse\Yoda\Abstract\Model\Connection if ($pid === 0) { - (new Gemini($this))->request( + (new Connection\Gemini($this))->request( $address, $timeout ); @@ -56,7 +51,7 @@ class Connection extends \Yggverse\Yoda\Abstract\Model\Connection if ($pid === 0) { - (new Nex($this))->request( + (new Connection\Nex($this))->request( $address, $timeout );