Skip to content
This repository has been archived by the owner on Jul 6, 2024. It is now read-only.

Latest commit

 

History

History
33 lines (21 loc) · 606 Bytes

ResponseManagerFactory.md

File metadata and controls

33 lines (21 loc) · 606 Bytes

ResponseManagerFactory

without name (default)

<?php

use Chubbyphp\ApiHttp\Container\ResponseManagerFactory;
use Psr\Container\ContainerInterface;

/** @var ContainerInterface $container */
$container = ...;

$factory = new ResponseManagerFactory();

$responseManager = $factory($container);

with name default

<?php

use Chubbyphp\ApiHttp\Container\ResponseManagerFactory;
use Psr\Container\ContainerInterface;

/** @var ContainerInterface $container */
$container = ...;

$factory = [ResponseManagerFactory::class, 'default'];

$responseManager = $factory($container);