oficinasuport-wp-theme/vendor/gettext/languages/src/autoloader.php

14 lines
346 B
PHP

<?php
spl_autoload_register(
function ($class) {
if (strpos($class, 'Gettext\\Languages\\') !== 0) {
return;
}
$file = __DIR__ . str_replace('\\', DIRECTORY_SEPARATOR, substr($class, strlen('Gettext\\Languages'))) . '.php';
if (is_file($file)) {
require_once $file;
}
}
);