Search moodle.org's
Developer Documentation

See Release Notes

  • Bug fixes for general core bugs in 4.0.x will end 8 May 2023 (12 months).
  • Bug fixes for security issues in 4.0.x will end 13 November 2023 (18 months).
  • PHP version: minimum PHP 7.3.0 Note: the minimum PHP version has increased since Moodle 3.10. PHP 7.4.x is also supported.

Differences Between: [Versions 310 and 400] [Versions 311 and 400] [Versions 39 and 400] [Versions 400 and 401] [Versions 400 and 402] [Versions 400 and 403]

   1  <?php
   2  
   3  // autoload_real.php @generated by Composer
   4  
   5  class ComposerAutoloaderInit47a82a2b792e78d18b5f54d474d822dc
   6  {
   7      private static $loader;
   8  
   9      public static function loadClassLoader($class)
  10      {
  11          if ('Composer\Autoload\ClassLoader' === $class) {
  12              require  __DIR__ . '/ClassLoader.php';
  13          }
  14      }
  15  
  16      /**
  17       * @return \Composer\Autoload\ClassLoader
  18       */
  19      public static function getLoader()
  20      {
  21          if (null !== self::$loader) {
  22              return self::$loader;
  23          }
  24  
  25          require  __DIR__ . '/platform_check.php';
  26  
  27          spl_autoload_register(array('ComposerAutoloaderInit47a82a2b792e78d18b5f54d474d822dc', 'loadClassLoader'), true, true);
  28          self::$loader = $loader = new \Composer\Autoload\ClassLoader(\dirname(\dirname(__FILE__)));
  29          spl_autoload_unregister(array('ComposerAutoloaderInit47a82a2b792e78d18b5f54d474d822dc', 'loadClassLoader'));
  30  
  31          $useStaticLoader = PHP_VERSION_ID >= 50600 && !defined('HHVM_VERSION') && (!function_exists('zend_loader_file_encoded') || !zend_loader_file_encoded());
  32          if ($useStaticLoader) {
  33              require  __DIR__ . '/autoload_static.php';
  34  
  35              call_user_func(\Composer\Autoload\ComposerStaticInit47a82a2b792e78d18b5f54d474d822dc::getInitializer($loader));
  36          } else {
  37              $map = require  __DIR__ . '/autoload_namespaces.php';
  38              foreach ($map as $namespace => $path) {
  39                  $loader->set($namespace, $path);
  40              }
  41  
  42              $map = require  __DIR__ . '/autoload_psr4.php';
  43              foreach ($map as $namespace => $path) {
  44                  $loader->setPsr4($namespace, $path);
  45              }
  46  
  47              $classMap = require  __DIR__ . '/autoload_classmap.php';
  48              if ($classMap) {
  49                  $loader->addClassMap($classMap);
  50              }
  51          }
  52  
  53          $loader->register(true);
  54  
  55          return $loader;
  56      }
  57  }