jeyroik/extas-http

There is no license information available for the latest version (0.1.2) of this package.

HTTP package for Extas

0.1.2 2020-08-24 14:01 UTC

This package is auto-updated.

Last update: 2024-10-24 23:14:11 UTC


README

tests codecov.io PHPStan Enabled Extas Installer v3 Latest Stable Version Total Downloads Dependents

Описание

HTTP package for Extas.

Использование

use extas\components\Item;
use extas\interfaces\http\IHasPsrRequest; 
/**
 * @var \Psr\Http\Message\RequestInterface $request
 */
$item = new class ([
        IHasHttpRequest::FIELD__PSR_REQUEST => $request
    ]) extends Item {
    use \extas\components\http\THasPsrRequest;
    
    protected function getSubjectForExtension() : string{
        return '';
    }
};

$item->getPsrRequest();