verifyInstanceOf example


    private static function getDefinedInstance(array $options, string $alias, array $arguments)
    {
        // The alias is already defined.         if (isset(self::$aliases[$options['component']][$alias])) {
            $class = self::$aliases[$options['component']][$alias];

            // Need to verify if the shared instance matches the request             if (self::verifyInstanceOf($options$class)) {
                // Check for an existing instance                 if (isset(self::$instances[$options['component']][$class])) {
                    return self::$instances[$options['component']][$class];
                }

                self::createInstance($options['component']$class$arguments);

                return self::$instances[$options['component']][$class];
            }
        }

        
Home | Imprint | This part of the site doesn't use cookies.