Skip to content

Commit

Permalink
add: SiteWithRequestInterface
Browse files Browse the repository at this point in the history
  • Loading branch information
joshbruce committed Jan 22, 2024
1 parent b36c82a commit bc7e502
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/SiteWithRequest.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
use Psr\Http\Message\RequestInterface;
use Psr\Http\Message\UriInterface;

use Eightfold\Amos\SiteInterface;
use Eightfold\Amos\SiteWithRequestInterface;

use Eightfold\Amos\FileSystem\Path;
use Eightfold\Amos\FileSystem\Filename;
Expand All @@ -20,7 +20,7 @@
use Eightfold\Amos\PlainText\PublicContent;
use Eightfold\Amos\PlainText\PublicFile;

class SiteWithRequest implements SiteInterface
class SiteWithRequest implements SiteWithRequestInterface
{
private HttpRoot $domain;

Expand Down
15 changes: 15 additions & 0 deletions src/SiteWithRequestInterface.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
<?php
declare(strict_types=1);

namespace Eightfold\Amos;

use SplFileInfo;

use Psr\Http\Message\RequestInterface;

use Eightfold\Amos\SiteInterface;

interface SiteWithRequestInterface extends SiteInterface
{
public function request(): RequestInterface;
}

0 comments on commit bc7e502

Please sign in to comment.