PHPOffice/PHPExcel — pull request #402 by frost-nzcr4 (2014-07-11 13:43:04+00:00)
Title: Decoupling PHPExcel and Writers

This update relates to the problem when you have set of PHPExcel objects and try to write all of them by using the writer, which has been configured once per set. To do this with current codebase one should instantiate the writer for each PHPExcel in the set, except Excel2007 and OpenDocument writers there get/setPHPExcel methods already in use. After this update you can use it with other writers as well:

$lonely_writer->setPHPExcel($phpExcel1)->save();
$lonely_writer->setPHPExcel($phpExcel2)->save();