Invision Community 4: SEO, prepare for v5 and dormant account notifications By Matt Monday at 02:04 PM
roc13x Posted February 20, 2019 Posted February 20, 2019 Hi, I have a question about this 4.4 developer change: Quote Changed how share services, file storage engines, package types, payment gateways, license key generation methods, server types, converters, and widget types are loaded: instead of using a DirectoryIterator to look at what files are on disk, all of these are now defined in a method. To add a new one, you can (and will need to) extend the appropriate method, rather than having users upload a file to a particular location. I assumed this would allow third-party developers to store files for custom share services, payment gateways, license keys, etc. within their own application directory, and not require the user to upload them into specific locations anymore. Which would be a very welcome change 🙂 However, this doesn't actually work. The code still loads all these classes from hard-coded directories. For example, Commerce loads gateways with: $classname = 'IPS\nexus\Gateway\\' . $data['m_gateway']; Meaning that in practice, we still need to upload our custom gateways to /applications/nexus/sources/Gateway/ folder for it to work. I'm just wondering if this was the intended way of it working? Thanks
Ilya Hoilik Posted February 20, 2019 Posted February 20, 2019 I reported this a week ago and today got notification that this will be fixed in 4.4.1
Recommended Posts
Archived
This topic is now archived and is closed to further replies.