PaulB
Well-known member
Is it possible to override options from config.php in XF2? For XF1 development, we patched XenForo to permit options to be overridden from config.php; we could then distribute a template config.php to our developers with sane defaults. However, this required us to maintain a variety of patches, since the options needed to be set before add-ons were installed. Has the situation changed with XF2?
For example, I noticed that
For example, I noticed that
\XF\Mailer\Mail::getTransportFromOption
supports 'file'
as a valid transport type to dump mail to files. Our developers need to be able to see what emails were sent by their add-ons, so toggling enableMail
isn't a great option, although we could set it to false
as a safe default. A better solution would be to set the emailTransport
option to 'file'
, but I haven't found a way to do that from config.php without either a patch or an add-on.
Last edited: