fix namespace

This commit is contained in:
ghost 2024-01-25 11:54:42 +02:00
parent 7ee0008999
commit 050b444e92
4 changed files with 9 additions and 9 deletions

View File

@ -17,15 +17,15 @@ Gemini Protocol library for PHP 8
```
<?php
$server = new \YGGverse\TitanII\Server();
$server = new \Yggverse\TitanII\Server();
$server->setCert('cert.pem');
$server->setKey('key.rsa');
$server->setHandler(
function (\YGGverse\TitanII\Request $request): \YGGverse\TitanII\Response
function (\Yggverse\TitanII\Request $request): \Yggverse\TitanII\Response
{
$response = new \YGGverse\TitanII\Response();
$response = new \Yggverse\TitanII\Response();
$response->setCode(20);
$response->setMeta('text/plain');

View File

@ -1,6 +1,6 @@
<?php
namespace YGGverse\TitanII;
namespace Yggverse\TitanII;
/**
* Gemini Request

View File

@ -1,6 +1,6 @@
<?php
namespace YGGverse\TitanII;
namespace Yggverse\TitanII;
/**
* Gemini Response

View File

@ -1,6 +1,6 @@
<?php
namespace YGGverse\TitanII;
namespace Yggverse\TitanII;
/**
* Gemini 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 {
stream_set_blocking($incoming, false);
$request = new \YGGverse\TitanII\Request($body);
$request = new \Yggverse\TitanII\Request($body);
$response = call_user_func($this->handler, $request);