CoreFiles by mySites.guru
ResponseFactory.php20 lines, 440 bytes, from Joomla_5.3.3-Stable-Full_Package.zip
Raw History Compare with 5.3.2
md5
f90d5e3683940628dd6790607f626507
sha1
6c891d5dd8a6c73fc8910de706b9c89c19412c6e
sha256
f56bf361571896b418135dfbe348add6e061161ce861d157ad119340f9fde6a4
<?php

declare(strict_types=1);

namespace Laminas\Diactoros;

use Psr\Http\Message\ResponseFactoryInterface;
use Psr\Http\Message\ResponseInterface;

class ResponseFactory implements ResponseFactoryInterface
{
    /**
     * {@inheritDoc}
     */
    public function createResponse(int $code = 200, string $reasonPhrase = ''): ResponseInterface
    {
        return (new Response())
            ->withStatus($code, $reasonPhrase);
    }
}

The same content is in 126 releases, Joomla 5.0.0-alpha1 to 6.1.0-alpha1. See them all, or every version of this file.