Merge branch '3.8'

This commit is contained in:
Romain Neutron
2014-02-28 00:28:06 +01:00
4 changed files with 20 additions and 13 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();
}