-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
a715048
commit f14234d
Showing
21 changed files
with
252 additions
and
125 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,71 @@ | ||
<?php | ||
|
||
/** | ||
* Part of cati project. | ||
* | ||
* @copyright Copyright (C) 2023 __ORGANIZATION__. | ||
* @license __LICENSE__ | ||
*/ | ||
|
||
declare(strict_types=1); | ||
|
||
namespace Windwalker\Core\Application\Context; | ||
|
||
use Psr\Http\Message\ServerRequestInterface; | ||
use Psr\Http\Message\UriInterface; | ||
use Windwalker\Core\Http\ProxyResolver; | ||
use Windwalker\Core\Router\Route; | ||
use Windwalker\Core\Router\SystemUri; | ||
use Windwalker\Data\Collection; | ||
use Windwalker\Event\EventAwareInterface; | ||
|
||
/** | ||
* Interface AppRequestInterface | ||
*/ | ||
interface AppRequestInterface extends EventAwareInterface | ||
{ | ||
public function getClientIP(): string; | ||
|
||
/** | ||
* @return UriInterface | ||
*/ | ||
public function getUri(): UriInterface; | ||
|
||
public function getQueryValues(): array; | ||
|
||
/** | ||
* @return array | ||
*/ | ||
public function getUrlVars(): array; | ||
|
||
/** | ||
* @return array | ||
*/ | ||
public function getInput(): array; | ||
|
||
public function getHeader(string $name): string; | ||
|
||
/** | ||
* @param mixed ...$fields | ||
* | ||
* @return mixed|Collection | ||
*/ | ||
public function input(...$fields): mixed; | ||
|
||
/** | ||
* @return SystemUri | ||
*/ | ||
public function getSystemUri(): SystemUri; | ||
|
||
/** | ||
* @return Route|null | ||
*/ | ||
public function getMatchedRoute(): ?Route; | ||
|
||
/** | ||
* @return ProxyResolver | ||
*/ | ||
public function getProxyResolver(): ProxyResolver; | ||
|
||
public function getServerRequest(): ServerRequestInterface; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.