Updated Drupal to 8.6. This goes with the following updates because it's possible...
[yaffs-website] / vendor / lsolesen / pel / autoload.php
diff --git a/vendor/lsolesen/pel/autoload.php b/vendor/lsolesen/pel/autoload.php
new file mode 100644 (file)
index 0000000..f86d0ad
--- /dev/null
@@ -0,0 +1,36 @@
+<?php
+/**
+ * PEL: PHP Exif Library.
+ * A library with support for reading and
+ * writing all Exif headers in JPEG and TIFF images using PHP.
+ *
+ * Copyright (C) 2015, Johannes Weberhofer.
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 2 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program in the file COPYING; if not, write to the
+ * Free Software Foundation, Inc., 51 Franklin St, Fifth Floor,
+ * Boston, MA 02110-1301 USA
+ */
+
+/**
+ * Register autoloader for pel
+ */
+spl_autoload_register(function ($class) {
+    if (substr_compare($class, 'lsolesen\\pel\\', 0, 13) === 0) {
+        $classname = str_replace('lsolesen\\pel\\', '', $class);
+        $load = realpath(__DIR__ . DIRECTORY_SEPARATOR . 'src' . DIRECTORY_SEPARATOR . $classname . '.php');
+        if ($load !== false) {
+            include_once realpath($load);
+        }
+    }
+});