[ Index ] |
PHP Cross Reference of Joomla 4.2.2 documentation |
[Summary view] [Print] [Text view]
1 <?php 2 3 /** 4 * @see https://github.com/laminas/laminas-diactoros for the canonical source repository 5 * @copyright https://github.com/laminas/laminas-diactoros/blob/master/COPYRIGHT.md 6 * @license https://github.com/laminas/laminas-diactoros/blob/master/LICENSE.md New BSD License 7 */ 8 9 declare(strict_types=1); 10 11 namespace Laminas\Diactoros; 12 13 use Psr\Http\Message\ResponseFactoryInterface; 14 use Psr\Http\Message\ResponseInterface; 15 16 class ResponseFactory implements ResponseFactoryInterface 17 { 18 /** 19 * {@inheritDoc} 20 */ 21 public function createResponse(int $code = 200, string $reasonPhrase = '') : ResponseInterface 22 { 23 return (new Response()) 24 ->withStatus($code, $reasonPhrase); 25 } 26 }
title
Description
Body
title
Description
Body
title
Description
Body
title
Body
Generated: Wed Sep 7 05:41:13 2022 | Chilli.vc Blog - For Webmaster,Blog-Writer,System Admin and Domainer |