![]() 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 Psr\Container\ContainerInterface; /** * Interface for an abstract factory. * * An abstract factory extends the factory interface, but also has an * additional "canCreate" method, which is called to check if the abstract * factory has the ability to create an instance for the given service. You * should limit the number of abstract factories to ensure good performance. * Starting from ServiceManager v3, remember that you can also attach multiple * names to the same factory, which reduces the need for abstract factories. */ interface AbstractFactoryInterface extends FactoryInterface { /** * Can the factory create an instance for the service? * * @param string $requestedName * @return bool */ public function canCreate(ContainerInterface $container, $requestedName); }