Метод | Описание | |
---|---|---|
__construct ( string $piwikUrl = null ) | Constructor.Set the Piwik's url. | |
__invoke ( Psr\Http\Message\ServerRequestInterface $request, Psr\Http\Message\ResponseInterface $response, callable $next ) : Psr\Http\Message\ResponseInterface | Execute the middleware. | |
addOption ( ) : self | Add an option. | |
piwikUrl ( string $url ) : self | Set the piwik url. | |
siteId ( integer $siteId ) : self | Set the site's id. |
Метод | Описание | |
---|---|---|
getCode ( ) : string | Returns the piwik code. |
public __construct ( string $piwikUrl = null ) | ||
$piwikUrl | string |
public __invoke ( Psr\Http\Message\ServerRequestInterface $request, Psr\Http\Message\ResponseInterface $response, callable $next ) : Psr\Http\Message\ResponseInterface | ||
$request | Psr\Http\Message\ServerRequestInterface | |
$response | Psr\Http\Message\ResponseInterface | |
$next | callable | |
Результат | Psr\Http\Message\ResponseInterface |