Method | Description | |
---|---|---|
__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. |
Method | Description | |
---|---|---|
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 | |
return | Psr\Http\Message\ResponseInterface |