Search moodle.org's
Developer Documentation

See Release Notes
Long Term Support Release

  • Bug fixes for general core bugs in 4.1.x will end 13 November 2023 (12 months).
  • Bug fixes for security issues in 4.1.x will end 10 November 2025 (36 months).
  • PHP version: minimum PHP 7.4.0 Note: minimum PHP version has increased since Moodle 4.0. PHP 8.0.x is supported too.
<?php

// autoload_real.php @generated by Composer

< class ComposerAutoloaderInit47a82a2b792e78d18b5f54d474d822dc
> class ComposerAutoloaderInite0d802f9161d0d84fba97a5520240273
{ private static $loader; public static function loadClassLoader($class) { if ('Composer\Autoload\ClassLoader' === $class) { require __DIR__ . '/ClassLoader.php'; } } /** * @return \Composer\Autoload\ClassLoader */ public static function getLoader() { if (null !== self::$loader) { return self::$loader; } require __DIR__ . '/platform_check.php';
< spl_autoload_register(array('ComposerAutoloaderInit47a82a2b792e78d18b5f54d474d822dc', 'loadClassLoader'), true, true); < self::$loader = $loader = new \Composer\Autoload\ClassLoader(\dirname(\dirname(__FILE__))); < spl_autoload_unregister(array('ComposerAutoloaderInit47a82a2b792e78d18b5f54d474d822dc', 'loadClassLoader'));
> spl_autoload_register(array('ComposerAutoloaderInite0d802f9161d0d84fba97a5520240273', 'loadClassLoader'), true, true); > self::$loader = $loader = new \Composer\Autoload\ClassLoader(\dirname(__DIR__)); > spl_autoload_unregister(array('ComposerAutoloaderInite0d802f9161d0d84fba97a5520240273', 'loadClassLoader'));
< $useStaticLoader = PHP_VERSION_ID >= 50600 && !defined('HHVM_VERSION') && (!function_exists('zend_loader_file_encoded') || !zend_loader_file_encoded()); < if ($useStaticLoader) {
require __DIR__ . '/autoload_static.php';
< < call_user_func(\Composer\Autoload\ComposerStaticInit47a82a2b792e78d18b5f54d474d822dc::getInitializer($loader)); < } else { < $map = require __DIR__ . '/autoload_namespaces.php'; < foreach ($map as $namespace => $path) { < $loader->set($namespace, $path); < } < < $map = require __DIR__ . '/autoload_psr4.php'; < foreach ($map as $namespace => $path) { < $loader->setPsr4($namespace, $path); < } < < $classMap = require __DIR__ . '/autoload_classmap.php'; < if ($classMap) { < $loader->addClassMap($classMap); < } < }
> call_user_func(\Composer\Autoload\ComposerStaticInite0d802f9161d0d84fba97a5520240273::getInitializer($loader));
$loader->register(true); return $loader; } }