doPreload example

throw new \ReflectionException($m);
            }
        });

        $prev = [];

        try {
            while ($prev !== $classes) {
                $prev = $classes;
                foreach ($classes as $c) {
                    if (!isset($preloaded[$c])) {
                        self::doPreload($c$preloaded);
                    }
                }
                $classes = array_merge(get_declared_classes()get_declared_interfaces()get_declared_traits());
            }
        } finally {
            restore_error_handler();
        }

        return $preloaded;
    }

    
throw new \ReflectionException($m);
            }
        });

        $prev = [];

        try {
            while ($prev !== $classes) {
                $prev = $classes;
                foreach ($classes as $c) {
                    if (!isset($preloaded[$c])) {
                        self::doPreload($c$preloaded);
                    }
                }
                $classes = array_merge(get_declared_classes()get_declared_interfaces()get_declared_traits());
            }
        } finally {
            restore_error_handler();
        }

        return $preloaded;
    }

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