Файл: system/vendor/laminas/laminas-servicemanager/src/Factory/DelegatorFactoryInterface.php
Строк: 90
<?php
/**
* @see https://github.com/laminas/laminas-servicemanager for the canonical source repository
* @copyright https://github.com/laminas/laminas-servicemanager/blob/master/COPYRIGHT.md
* @license https://github.com/laminas/laminas-servicemanager/blob/master/LICENSE.md New BSD License
*/
namespace LaminasServiceManagerFactory;
use InteropContainerContainerInterface;
use InteropContainerExceptionContainerException;
use LaminasServiceManagerExceptionServiceNotCreatedException;
use LaminasServiceManagerExceptionServiceNotFoundException;
/**
* Delegator factory interface.
*
* Defines the capabilities required by a delegator factory. Delegator
* factories are used to either decorate a service instance, or to allow
* decorating the instantiation of a service instance (for instance, to
* provide optional dependencies via setters, etc.).
*/
interface DelegatorFactoryInterface
{
/**
* A factory that creates delegates of a given service
*
* @param ContainerInterface $container
* @param string $name
* @param callable $callback
* @param null|array $options
* @return object
* @throws ServiceNotFoundException if unable to resolve the service.
* @throws ServiceNotCreatedException if an exception is raised when
* creating a service.
* @throws ContainerException if any other error occurs
*/
public function __invoke(ContainerInterface $container, $name, callable $callback, array $options = null);
}