Compare commits
No commits in common. "6d8a972fefae1792ac0fbe0e2bf44494375cc402" and "b9ecb3d3ba7ddc4f3fdf4299690b6b1899c0068a" have entirely different histories.
6d8a972fef
...
b9ecb3d3ba
@ -7,10 +7,6 @@ use React\Http\HttpServer;
|
|||||||
use React\Socket\SocketServer;
|
use React\Socket\SocketServer;
|
||||||
use Psr\Http\Message\ServerRequestInterface as Request;
|
use Psr\Http\Message\ServerRequestInterface as Request;
|
||||||
|
|
||||||
/**
|
|
||||||
* We should only be using this method of deploying the applications once we
|
|
||||||
* figure out how to pool MySQL connections. While most PHP can be used in an
|
|
||||||
*/
|
|
||||||
try {
|
try {
|
||||||
$app = Bootstrap::init();
|
$app = Bootstrap::init();
|
||||||
$http = new HttpServer(fn (Request $request) => $app->handle($request));
|
$http = new HttpServer(fn (Request $request) => $app->handle($request));
|
||||||
|
@ -3,6 +3,7 @@
|
|||||||
namespace Slovocast\Domain\Entity\Episode;
|
namespace Slovocast\Domain\Entity\Episode;
|
||||||
|
|
||||||
use Slovocast\Domain\Entity as EntityTrait;
|
use Slovocast\Domain\Entity as EntityTrait;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Represents the data about the specific file that is used for the episode.
|
* Represents the data about the specific file that is used for the episode.
|
||||||
*/
|
*/
|
||||||
@ -10,18 +11,8 @@ class File
|
|||||||
{
|
{
|
||||||
use EntityTrait;
|
use EntityTrait;
|
||||||
|
|
||||||
/**
|
|
||||||
* We should also be able to buffer the raw binary data of the buffer to
|
|
||||||
* the class. Fuck it, we ball.
|
|
||||||
*/
|
|
||||||
private string $buffer = "";
|
private string $buffer = "";
|
||||||
|
|
||||||
/**
|
|
||||||
* @param string $url The URL can be a full file location on the disk, or
|
|
||||||
* a remote URL. It does not matter
|
|
||||||
* @param int $length The length of the episode in seconds
|
|
||||||
* @param string $type The audio file type
|
|
||||||
*/
|
|
||||||
public function __construct(
|
public function __construct(
|
||||||
private string $url,
|
private string $url,
|
||||||
private int $length,
|
private int $length,
|
||||||
|
Loading…
Reference in New Issue
Block a user