![]() Server : Apache System : Linux server2.corals.io 4.18.0-348.2.1.el8_5.x86_64 #1 SMP Mon Nov 15 09:17:08 EST 2021 x86_64 User : corals ( 1002) PHP Version : 7.4.33 Disable Function : exec,passthru,shell_exec,system Directory : /home/corals/old/vendor/laminas/laminas-servicemanager/src/Factory/ |
<?php declare(strict_types=1); namespace Laminas\ServiceManager\Factory; use Laminas\ServiceManager\Exception\ServiceNotCreatedException; use Laminas\ServiceManager\Exception\ServiceNotFoundException; use Psr\Container\ContainerExceptionInterface; use Psr\Container\ContainerInterface; /** * Interface for a factory * * A factory is an callable object that is able to create an object. It is * given the instance of the service locator, the requested name of the class * you want to create, and any additional options that could be used to * configure the instance state. */ interface FactoryInterface { /** * Create an object * * @param string $requestedName * @param null|array<mixed> $options * @return object * @throws ServiceNotFoundException If unable to resolve the service. * @throws ServiceNotCreatedException If an exception is raised when creating a service. * @throws ContainerExceptionInterface If any other error occurs. */ public function __invoke(ContainerInterface $container, $requestedName, ?array $options = null); }