[ 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\ServerRequestFactoryInterface; 14 use Psr\Http\Message\RequestFactoryInterface; 15 use Psr\Http\Message\ResponseFactoryInterface; 16 use Psr\Http\Message\StreamFactoryInterface; 17 use Psr\Http\Message\UploadedFileFactoryInterface; 18 use Psr\Http\Message\UriFactoryInterface; 19 20 class ConfigProvider 21 { 22 /** 23 * Retrieve configuration for laminas-diactoros. 24 * 25 * @return array 26 */ 27 public function __invoke() : array 28 { 29 return [ 30 'dependencies' => $this->getDependencies(), 31 ]; 32 } 33 34 /** 35 * Returns the container dependencies. 36 * Maps factory interfaces to factories. 37 */ 38 public function getDependencies() : array 39 { 40 return [ 41 'invokables' => [ 42 RequestFactoryInterface::class => RequestFactory::class, 43 ResponseFactoryInterface::class => ResponseFactory::class, 44 StreamFactoryInterface::class => StreamFactory::class, 45 ServerRequestFactoryInterface::class => ServerRequestFactory::class, 46 UploadedFileFactoryInterface::class => UploadedFileFactory::class, 47 UriFactoryInterface::class => UriFactory::class 48 ], 49 ]; 50 } 51 }
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 |