__DIR__ . '/vendor/psr/container/src/', 'RyanHellyer\\UniqueHeaders\\Vendor\\Inpsyde\\Modularity\\' => __DIR__ . '/vendor/inpsyde/modularity/src/', 'RyanHellyer\\UniqueHeaders\\' => __DIR__ . '/src/', ]; foreach ($prefixes as $prefix => $baseDir) { $len = strlen($prefix); if (strncmp($prefix, $class, $len) !== 0) { continue; } $file = $baseDir . str_replace('\\', '/', substr($class, $len)) . '.php'; if (file_exists($file)) { require $file; return; } } }); } $helper = new AttachmentHelper(); $properties = PluginProperties::new(__FILE__); $package = Package::new($properties); $package->addModule(new AdminModule($helper)); $package->addModule(new DisplayModule($helper)); $package->boot();