xref: /plugin/totext/vendor/prinsfrank/pdfparser/.al-custom.php (revision b4ecfc82b02c9a76205381a28b47006474ccf569)
1<?php declare(strict_types=1);
2
3/**
4 * This file contains an alternative autoloader for when you can't, or don't want to, use the Composer autoloader.
5 * To use this file, simply add `require_once 'path/to/this/package/.al-custom.php'` at the top of
6 * your custom bootstrap file or the file you want to use this package in.
7 * If you are using the Composer autoloader, you don't need to include this file at all.
8 */
9spl_autoload_register(
10    fn (string $FQN) => str_starts_with($FQN, 'PrinsFrank\\PdfParser\\')
11        ? require_once __DIR__ . '/src/' . str_replace('\\', DIRECTORY_SEPARATOR, substr($FQN, 21)) . '.php'
12        : null
13);
14