forked from FriendsOfREDAXO/mediapool_exif
-
Notifications
You must be signed in to change notification settings - Fork 0
/
boot.php
21 lines (15 loc) · 1.14 KB
/
boot.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
<?php
use FriendsOfRedaxo\MediapoolExif;
spl_autoload_register(['FriendsOfRedaxo\\MediapoolExif\\Autoload', 'autoload'], true, true); // remove in v4
class_alias(MediapoolExif\Exception\InvalidClassException::class, 'FriendsOfRedaxo\\addon\\MediapoolExif\\Exception\\InvalidClassException');// remove in v4
class_alias(MediapoolExif\Exception\InvalidFormatExcption::class, 'FriendsOfRedaxo\\addon\\MediapoolExif\\Exception\\InvalidFormatExcption');// remove in v4
class_alias(MediapoolExif\Exception\IptcException::class, 'FriendsOfRedaxo\\addon\\MediapoolExif\\Exception\\IptcException');// remove in v4
class_alias(MediapoolExif\Exception\NotFoundException::class, 'FriendsOfRedaxo\\addon\\MediapoolExif\\Exception\\NotFoundException');// remove in v4
$dir = realpath(__DIR__);
if ($dir !== false) {
rex_fragment::addDirectory($dir);
}
$class = MediapoolExif\MediapoolExif::class;
rex_extension::register('MEDIA_ADDED', [$class, 'processUploadedMedia'], rex_extension::LATE);
rex_extension::register('MEDIA_UPDATED', [$class, 'processUploadedMedia'], rex_extension::LATE);
rex_extension::register('MEDIA_DETAIL_SIDEBAR', [$class, 'mediapoolDetailOutput']);