mirror of
https://github.com/YGGverse/titan-II.git
synced 2025-01-11 23:58:29 +00:00
fix namespace
This commit is contained in:
parent
7ee0008999
commit
050b444e92
@ -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');
|
||||
|
@ -1,6 +1,6 @@
|
||||
<?php
|
||||
|
||||
namespace YGGverse\TitanII;
|
||||
namespace Yggverse\TitanII;
|
||||
|
||||
/**
|
||||
* Gemini Request
|
||||
|
@ -1,6 +1,6 @@
|
||||
<?php
|
||||
|
||||
namespace YGGverse\TitanII;
|
||||
namespace Yggverse\TitanII;
|
||||
|
||||
/**
|
||||
* Gemini Response
|
||||
|
@ -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);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user