Make XenForo's request object PSR-7 compatible

Jake B.

Well-known member

Would be really helpful when integrating libraries that require PSR7 compatibility. Currently have to build a new request object specifically for these cases. Could only have the required PSR7 methods there for these specific cases and keep using the default methods for backwards compatibility, or have a getPSR() method on the request object to pass into these libraries
 
Upvote 10
PSR-7 puts a lot of emphasis on immutability, so I'd be in favor of a getPSR method rather than pretending that XenForo's Request type is immutable.
 
Back
Top Bottom