![]() Server : Apache System : Linux server2.corals.io 4.18.0-348.2.1.el8_5.x86_64 #1 SMP Mon Nov 15 09:17:08 EST 2021 x86_64 User : corals ( 1002) PHP Version : 7.4.33 Disable Function : exec,passthru,shell_exec,system Directory : /home/corals/dceprojects.corals.io/vendor/dompdf/dompdf/src/ |
<?php namespace Dompdf; /** * Autoloads Dompdf classes * * @package Dompdf */ class Autoloader { const PREFIX = 'Dompdf'; /** * Register the autoloader */ public static function register() { spl_autoload_register([new self, 'autoload']); } /** * Autoloader * * @param string */ public static function autoload($class) { if ($class === 'Dompdf\Cpdf') { require_once __DIR__ . "/../lib/Cpdf.php"; return; } $prefixLength = strlen(self::PREFIX); if (0 === strncmp(self::PREFIX, $class, $prefixLength)) { $file = str_replace('\\', '/', substr($class, $prefixLength)); $file = realpath(__DIR__ . (empty($file) ? '' : '/') . $file . '.php'); if (file_exists($file)) { require_once $file; } } } }