Skip to content

Commit

Permalink
[ENH] setup Request to use the RequestContract
Browse files Browse the repository at this point in the history
  • Loading branch information
bim-g committed Sep 21, 2024
1 parent 9f85ee9 commit 5e71d32
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 1 deletion.
17 changes: 17 additions & 0 deletions src/Core/Http/Providers/Contracts/RequestContract.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
<?php
/*
* Copyright (c) 2024. Wepesi Dev Framework
*/

namespace Wepesi\Core\Http\Providers\Contracts;

/**
*
*/
interface RequestContract
{
/**
* @return RequestContract
*/
public static function createFromGlobals(): RequestContract;
}
4 changes: 3 additions & 1 deletion src/Core/Http/Request.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,9 @@

namespace Wepesi\Core\Http;

class Request
use Wepesi\Core\Http\Providers\Contracts\RequestContract;

class Request implements RequestContract
{
public string $uri;
public string $method;
Expand Down

0 comments on commit 5e71d32

Please sign in to comment.