0 follower

Interface Yiisoft\RequestProvider\RequestProviderInterface

Implemented byYiisoft\RequestProvider\RequestProvider

Provides a way to set the current request and then get it when needed.

Public Methods

Hide inherited methods

Method Description Defined By
get() Get the current request. Yiisoft\RequestProvider\RequestProviderInterface
set() Set the current request. Yiisoft\RequestProvider\RequestProviderInterface

Method Details

Hide inherited methods

get() public abstract method

Get the current request.

public abstract \Psr\Http\Message\ServerRequestInterface get ( )
throws Yiisoft\RequestProvider\RequestNotSetException

                public function get(): ServerRequestInterface;

            
set() public abstract method

Set the current request.

public abstract void set ( \Psr\Http\Message\ServerRequestInterface $request )
$request \Psr\Http\Message\ServerRequestInterface

The request to set.

                public function set(ServerRequestInterface $request): void;