Improve Xsendfile tools, allow dump whenever the conf is disabled

This commit is contained in:
Romain Neutron
2014-02-26 18:46:10 +01:00
parent 965a685236
commit 51b9a7f89a
3 changed files with 13 additions and 12 deletions

View File

@@ -66,9 +66,9 @@ class XSendFileFactory
*
* @throws InvalidArgumentException if mode type is unknown
*/
public function getMode($throwException = false)
public function getMode($throwException = false, $forceMode = false)
{
if (false === $this->enabled) {
if (false === $this->enabled && true !== $forceMode) {
return new NullMode();
}