|
|
|
@ -1,6 +1,6 @@
@@ -1,6 +1,6 @@
|
|
|
|
|
<?php |
|
|
|
|
|
|
|
|
|
namespace YGGverse\TitanII; |
|
|
|
|
namespace Yggverse\TitanII; |
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
* Gemini Server |
|
|
|
@ -54,9 +54,9 @@ class Server {
@@ -54,9 +54,9 @@ class Server {
|
|
|
|
|
* |
|
|
|
|
* Parameter 1 Callable is expected to handle the following: |
|
|
|
|
* |
|
|
|
|
* @param \YGGverse\TitanII\Request |
|
|
|
|
* @param \Yggverse\TitanII\Request |
|
|
|
|
* |
|
|
|
|
* @return \YGGverse\TitanII\Response |
|
|
|
|
* @return \Yggverse\TitanII\Response |
|
|
|
|
*/ |
|
|
|
|
public function setHandler(callable $handler): self |
|
|
|
|
{ |
|
|
|
@ -158,7 +158,7 @@ class Server {
@@ -158,7 +158,7 @@ class Server {
|
|
|
|
|
|
|
|
|
|
stream_set_blocking($incoming, false); |
|
|
|
|
|
|
|
|
|
$request = new \YGGverse\TitanII\Request($body); |
|
|
|
|
$request = new \Yggverse\TitanII\Request($body); |
|
|
|
|
|
|
|
|
|
$response = call_user_func($this->handler, $request); |
|
|
|
|
|
|
|
|
|