![]() 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/cartforge.co/vendor/laminas/laminas-servicemanager/src/ |
<?php declare(strict_types=1); namespace Laminas\ServiceManager; /** * Backwards-compatibility shim for AbstractFactoryInterface. * * Implementations should update to implement only Laminas\ServiceManager\Factory\AbstractFactoryInterface. * * If upgrading from v2, take the following steps: * * - rename the method `canCreateServiceWithName()` to `canCreate()`, and: * - rename the `$serviceLocator` argument to `$container`, and change the * typehint to `Psr\Container\ContainerInterface` * - merge the `$name` and `$requestedName` arguments * - rename the method `createServiceWithName()` to `__invoke()`, and: * - rename the `$serviceLocator` argument to `$container`, and change the * typehint to `Psr\Container\ContainerInterface` * - merge the `$name` and `$requestedName` arguments * - add the optional `array $options = null` argument. * - create a `canCreateServiceWithName()` method as defined in this interface, and have it * proxy to `canCreate()`, passing `$requestedName` as the second argument. * - create a `createServiceWithName()` method as defined in this interface, and have it * proxy to `__invoke()`, passing `$requestedName` as the second argument. * * Once you have tested your code, you can then update your class to only implement * Laminas\ServiceManager\Factory\AbstractFactoryInterface, and remove the `canCreateServiceWithName()` * and `createServiceWithName()` methods. * * @deprecated Use Laminas\ServiceManager\Factory\AbstractFactoryInterface instead. */ interface AbstractFactoryInterface extends Factory\AbstractFactoryInterface { /** * Determine if we can create a service with name * * @param string $name * @param string $requestedName * @return bool */ public function canCreateServiceWithName(ServiceLocatorInterface $serviceLocator, $name, $requestedName); /** * Create service with name * * @param string $name * @param string $requestedName * @return mixed */ public function createServiceWithName(ServiceLocatorInterface $serviceLocator, $name, $requestedName); }