Skip to content
This repository has been archived by the owner on May 4, 2024. It is now read-only.

Commit

Permalink
fix namespace
Browse files Browse the repository at this point in the history
  • Loading branch information
ghost committed Jan 25, 2024
1 parent 7ee0008 commit 050b444
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 9 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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');
Expand Down
2 changes: 1 addition & 1 deletion src/Request.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

namespace YGGverse\TitanII;
namespace Yggverse\TitanII;

/**
* Gemini Request
Expand Down
2 changes: 1 addition & 1 deletion src/Response.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

namespace YGGverse\TitanII;
namespace Yggverse\TitanII;

/**
* Gemini Response
Expand Down
8 changes: 4 additions & 4 deletions src/Server.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

namespace YGGverse\TitanII;
namespace Yggverse\TitanII;

/**
* Gemini Server
Expand Down Expand Up @@ -54,9 +54,9 @@ public function __construct()
*
* 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
{
Expand Down Expand Up @@ -158,7 +158,7 @@ public function start(string $ip = '0', int $port = 1965): void

stream_set_blocking($incoming, false);

$request = new \YGGverse\TitanII\Request($body);
$request = new \Yggverse\TitanII\Request($body);

$response = call_user_func($this->handler, $request);

Expand Down

0 comments on commit 050b444

Please sign in to comment.