66require_once "exceptions.php " ;
77
88spl_autoload_register (function ($ type ) {
9- static $ paths = array (
10- 'greeny\maillibrary\connection ' => 'Connection.php ' ,
11- 'greeny\maillibrary\mailbox ' => 'Mailbox.php ' ,
12- 'greeny\maillibrary\selection ' => 'Selection.php ' ,
13- 'greeny\maillibrary\mail ' => 'Mail.php ' ,
14- 'greeny\maillibrary\contactlist ' => 'ContactList.php ' ,
15- 'greeny\maillibrary\contact ' => 'Contact.php ' ,
16- 'greeny\maillibrary\attachment ' => 'Attachment.php ' ,
17- 'greeny\maillibrary\structures\istructure ' => 'Structures/IStructure.php ' ,
18- 'greeny\maillibrary\structures\imapstructure ' => 'Structures/ImapStructure.php ' ,
19- 'greeny\maillibrary\drivers\idriver ' => 'Drivers/IDriver.php ' ,
20- 'greeny\maillibrary\drivers\imapdriver ' => 'Drivers/ImapDriver.php ' ,
21- 'greeny\maillibrary\extensions\maillibraryextension ' => 'Extensions/MailLibraryExtension.php ' ,
22- );
9+ static $ paths = array (
10+ 'greeny\maillibrary\connection ' => 'Connection.php ' ,
11+ 'greeny\maillibrary\mailbox ' => 'Mailbox.php ' ,
12+ 'greeny\maillibrary\selection ' => 'Selection.php ' ,
13+ 'greeny\maillibrary\mail ' => 'Mail.php ' ,
14+ 'greeny\maillibrary\contactlist ' => 'ContactList.php ' ,
15+ 'greeny\maillibrary\contact ' => 'Contact.php ' ,
16+ 'greeny\maillibrary\attachment ' => 'Attachment.php ' ,
17+ 'greeny\maillibrary\structures\istructure ' => 'Structures/IStructure.php ' ,
18+ 'greeny\maillibrary\structures\imapstructure ' => 'Structures/ImapStructure.php ' ,
19+ 'greeny\maillibrary\drivers\idriver ' => 'Drivers/IDriver.php ' ,
20+ 'greeny\maillibrary\drivers\imapdriver ' => 'Drivers/ImapDriver.php ' ,
21+ 'greeny\maillibrary\extensions\maillibraryextension ' => 'Extensions/MailLibraryExtension.php ' ,
22+ );
2323
24- $ type = ltrim (strtolower ($ type ), '\\' ); // PHP namespace bug #49143
24+ $ type = ltrim (strtolower ($ type ), '\\' ); // PHP namespace bug #49143
2525
26- if (isset ($ paths [$ type ])) {
27- require_once __DIR__ . '/ ' . $ paths [$ type ];
28- }
26+ if (isset ($ paths [$ type ])) {
27+ require_once __DIR__ . '/ ' . $ paths [$ type ];
28+ }
2929});
0 commit comments