summaryrefslogtreecommitdiffstats
path: root/vendor/setasign/fpdi/src/autoload.php
diff options
context:
space:
mode:
Diffstat (limited to 'vendor/setasign/fpdi/src/autoload.php')
-rw-r--r--vendor/setasign/fpdi/src/autoload.php21
1 files changed, 21 insertions, 0 deletions
diff --git a/vendor/setasign/fpdi/src/autoload.php b/vendor/setasign/fpdi/src/autoload.php
new file mode 100644
index 0000000..4c3df9d
--- /dev/null
+++ b/vendor/setasign/fpdi/src/autoload.php
@@ -0,0 +1,21 @@
+<?php
+
+/**
+ * This file is part of FPDI
+ *
+ * @package setasign\Fpdi
+ * @copyright Copyright (c) 2020 Setasign GmbH & Co. KG (https://www.setasign.com)
+ * @license http://opensource.org/licenses/mit-license The MIT License
+ */
+
+spl_autoload_register(static function ($class) {
+ if (strpos($class, 'setasign\Fpdi\\') === 0) {
+ $filename = str_replace('\\', DIRECTORY_SEPARATOR, substr($class, 14)) . '.php';
+ $fullpath = __DIR__ . DIRECTORY_SEPARATOR . $filename;
+
+ if (is_file($fullpath)) {
+ /** @noinspection PhpIncludeInspection */
+ require_once $fullpath;
+ }
+ }
+});