PHP Mini Documentation

RequestInterface extends ContainerInterface

PHP Mini Framework

Tags
copyright

busarm.com

license

https://github.com/Busarm/php-mini/blob/master/LICENSE (MIT License)

codeCoverageIgnore

Table of Contents

addSingleton()  : self
Add singleton
baseUrl()  : string
content()  : mixed
contentType()  : string
cookie()  : AttributeBag
currentUrl()  : string
domain()  : string
file()  : AttributeBag
getSingleton()  : self
Get singleton
header()  : AttributeBag
host()  : string
ip()  : string
method()  : string
query()  : AttributeBag
request()  : AttributeBag
scheme()  : string
segments()  : array<string|int, mixed>
server()  : AttributeBag
session()  : SessionBag
toPsr()  : ServerRequestInterface
uri()  : string
version()  : string
withUri()  : self

Methods

addSingleton()

Add singleton

public addSingleton(string $className, object|null &$object) : self
Parameters
$className : string
$object : object|null
Tags
Return values
self

contentType()

public contentType() : string
Tags
Return values
string

getSingleton()

Get singleton

public getSingleton(string $className[, object $default = null ]) : self
Parameters
$className : string
$default : object = null
Tags
Return values
self

segments()

public segments() : array<string|int, mixed>
Tags
Return values
array<string|int, mixed>

toPsr()

public toPsr() : ServerRequestInterface
Tags
Return values
ServerRequestInterface

withUri()

public withUri(UriInterface $uri) : self
Parameters
$uri : UriInterface
Tags
Return values
self

        

Search results