%PDF-1.5 %���� ºaâÚÎΞ-ÌE1ÍØÄ÷{òò2ÿ ÛÖ^ÔÀá TÎ{¦?§®¥kuµùÕ5sLOšuY
Server IP : 49.231.201.246 / Your IP : 216.73.216.149 Web Server : Apache/2.4.18 (Ubuntu) System : Linux 246 4.4.0-210-generic #242-Ubuntu SMP Fri Apr 16 09:57:56 UTC 2021 x86_64 User : root ( 0) PHP Version : 7.0.33-0ubuntu0.16.04.16 Disable Function : exec,passthru,shell_exec,system,proc_open,popen,pcntl_exec MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : ON | Pkexec : ON Directory : /var/www/html/egp/vendor/zendframework/zend-servicemanager/src/Di/ |
Upload File : |
<?php /** * Zend Framework (http://framework.zend.com/) * * @link http://github.com/zendframework/zf2 for the canonical source repository * @copyright Copyright (c) 2005-2015 Zend Technologies USA Inc. (http://www.zend.com) * @license http://framework.zend.com/license/new-bsd New BSD License */ namespace Zend\ServiceManager\Di; use Zend\Di\Di; use Zend\ServiceManager\AbstractFactoryInterface; use Zend\ServiceManager\ServiceLocatorInterface; class DiAbstractServiceFactory extends DiServiceFactory implements AbstractFactoryInterface { /** * Constructor * * @param \Zend\Di\Di $di * @param null|string|\Zend\Di\InstanceManager $useServiceLocator */ public function __construct(Di $di, $useServiceLocator = self::USE_SL_NONE) { $this->di = $di; if (in_array($useServiceLocator, array(self::USE_SL_BEFORE_DI, self::USE_SL_AFTER_DI, self::USE_SL_NONE))) { $this->useServiceLocator = $useServiceLocator; } // since we are using this in a proxy-fashion, localize state $this->definitions = $this->di->definitions; $this->instanceManager = $this->di->instanceManager; } /** * {@inheritDoc} */ public function createServiceWithName(ServiceLocatorInterface $serviceLocator, $name, $requestedName) { $this->serviceLocator = $serviceLocator; if ($requestedName) { return $this->get($requestedName, array()); } return $this->get($name, array()); } /** * {@inheritDoc} */ public function canCreateServiceWithName(ServiceLocatorInterface $serviceLocator, $name, $requestedName) { if ($this->instanceManager->hasSharedInstance($requestedName) || $this->instanceManager->hasAlias($requestedName) || $this->instanceManager->hasConfig($requestedName) || $this->instanceManager->hasTypePreferences($requestedName) ) { return true; } if (! $this->definitions->hasClass($requestedName) || interface_exists($requestedName)) { return false; } return true; } }