Browse Source

rename request method

PHP-GTK3
yggverse 4 months ago
parent
commit
0d9f308949
  1. 6
      src/Model/Connection.php
  2. 2
      src/Model/Connection/File.php
  3. 2
      src/Model/Connection/Gemini.php
  4. 2
      src/Model/Connection/Nex.php

6
src/Model/Connection.php

@ -27,7 +27,7 @@ class Connection extends \Yggverse\Yoda\Abstract\Model\Connection @@ -27,7 +27,7 @@ class Connection extends \Yggverse\Yoda\Abstract\Model\Connection
{
case 'file':
(new File($this))->sync(
(new File($this))->request(
$address
);
@ -35,7 +35,7 @@ class Connection extends \Yggverse\Yoda\Abstract\Model\Connection @@ -35,7 +35,7 @@ class Connection extends \Yggverse\Yoda\Abstract\Model\Connection
case 'gemini':
(new Gemini($this))->sync(
(new Gemini($this))->request(
$address,
$timeout
);
@ -44,7 +44,7 @@ class Connection extends \Yggverse\Yoda\Abstract\Model\Connection @@ -44,7 +44,7 @@ class Connection extends \Yggverse\Yoda\Abstract\Model\Connection
case 'nex':
(new Nex($this))->sync(
(new Nex($this))->request(
$address,
$timeout
);

2
src/Model/Connection/File.php

@ -19,7 +19,7 @@ class File @@ -19,7 +19,7 @@ class File
$this->_connection = $connection;
}
public function sync(
public function request(
Address $address
): void
{

2
src/Model/Connection/Gemini.php

@ -20,7 +20,7 @@ class Gemini @@ -20,7 +20,7 @@ class Gemini
$this->_connection = $connection;
}
public function sync(
public function request(
Address $address,
int $timeout = 5
): void

2
src/Model/Connection/Nex.php

@ -20,7 +20,7 @@ class Nex @@ -20,7 +20,7 @@ class Nex
}
// @TODO
public function sync(
public function request(
Address $address,
int $timeout = 5
): void

Loading…
Cancel
Save