芝麻web文件管理V1.00
编辑当前文件:/home/mgatv524/public_html/mctv/vendor/php-di/php-di/src/Definition/Resolver/InstanceInjector.php
*/ class InstanceInjector extends ObjectCreator { /** * Injects dependencies on an existing instance. * * @param InstanceDefinition $definition */ public function resolve(Definition $definition, array $parameters = []) { try { $this->injectMethodsAndProperties($definition->getInstance(), $definition->getObjectDefinition()); } catch (NotFoundExceptionInterface $e) { $message = sprintf( 'Error while injecting dependencies into %s: %s', get_class($definition->getInstance()), $e->getMessage() ); throw new DependencyException($message, 0, $e); } } public function isResolvable(Definition $definition, array $parameters = []) : bool { return true; } }