Rename Factory folder to Creator (#430)
This commit is contained in:
parent
cebffbe80c
commit
878c4a9c8b
@ -1,6 +1,6 @@
|
|||||||
<?php
|
<?php
|
||||||
|
|
||||||
namespace Box\Spout\Writer\Factory;
|
namespace Box\Spout\Writer\Creator;
|
||||||
|
|
||||||
use Box\Spout\Writer\Common\Sheet;
|
use Box\Spout\Writer\Common\Sheet;
|
||||||
use Box\Spout\Writer\Entity\Workbook;
|
use Box\Spout\Writer\Entity\Workbook;
|
||||||
@ -8,9 +8,9 @@ use Box\Spout\Writer\Entity\Worksheet;
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Class EntityFactory
|
* Class EntityFactory
|
||||||
* Entity factory
|
* Factory to create entities
|
||||||
*
|
*
|
||||||
* @package Box\Spout\Writer\Factory
|
* @package Box\Spout\Writer\Creator
|
||||||
*/
|
*/
|
||||||
class EntityFactory
|
class EntityFactory
|
||||||
{
|
{
|
@ -1,6 +1,6 @@
|
|||||||
<?php
|
<?php
|
||||||
|
|
||||||
namespace Box\Spout\Writer\Factory;
|
namespace Box\Spout\Writer\Creator;
|
||||||
|
|
||||||
use Box\Spout\Writer\Manager\OptionsManagerInterface;
|
use Box\Spout\Writer\Manager\OptionsManagerInterface;
|
||||||
use Box\Spout\Writer\Manager\WorkbookManagerInterface;
|
use Box\Spout\Writer\Manager\WorkbookManagerInterface;
|
||||||
@ -8,7 +8,7 @@ use Box\Spout\Writer\Manager\WorkbookManagerInterface;
|
|||||||
/**
|
/**
|
||||||
* Interface GeneralFactoryInterface
|
* Interface GeneralFactoryInterface
|
||||||
*
|
*
|
||||||
* @package Box\Spout\Writer\Factory
|
* @package Box\Spout\Writer\Creator
|
||||||
*/
|
*/
|
||||||
interface InternalFactoryInterface
|
interface InternalFactoryInterface
|
||||||
{
|
{
|
@ -12,7 +12,7 @@ use Box\Spout\Writer\Entity\Workbook;
|
|||||||
use Box\Spout\Writer\Entity\Worksheet;
|
use Box\Spout\Writer\Entity\Worksheet;
|
||||||
use Box\Spout\Writer\Exception\SheetNotFoundException;
|
use Box\Spout\Writer\Exception\SheetNotFoundException;
|
||||||
use Box\Spout\Writer\Exception\WriterException;
|
use Box\Spout\Writer\Exception\WriterException;
|
||||||
use Box\Spout\Writer\Factory\EntityFactory;
|
use Box\Spout\Writer\Creator\EntityFactory;
|
||||||
use Box\Spout\Writer\Style\Style;
|
use Box\Spout\Writer\Style\Style;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -1,12 +1,12 @@
|
|||||||
<?php
|
<?php
|
||||||
|
|
||||||
namespace Box\Spout\Writer\ODS\Factory;
|
namespace Box\Spout\Writer\ODS\Creator;
|
||||||
|
|
||||||
use Box\Spout\Common\Helper\StringHelper;
|
use Box\Spout\Common\Helper\StringHelper;
|
||||||
use Box\Spout\Writer\Manager\OptionsManagerInterface;
|
use Box\Spout\Writer\Manager\OptionsManagerInterface;
|
||||||
use Box\Spout\Writer\Entity\Options;
|
use Box\Spout\Writer\Entity\Options;
|
||||||
use Box\Spout\Writer\Factory\EntityFactory;
|
use Box\Spout\Writer\Creator\EntityFactory;
|
||||||
use Box\Spout\Writer\Factory\InternalFactoryInterface;
|
use Box\Spout\Writer\Creator\InternalFactoryInterface;
|
||||||
use Box\Spout\Writer\ODS\Helper\FileSystemHelper;
|
use Box\Spout\Writer\ODS\Helper\FileSystemHelper;
|
||||||
use Box\Spout\Writer\ODS\Helper\StyleHelper;
|
use Box\Spout\Writer\ODS\Helper\StyleHelper;
|
||||||
use Box\Spout\Writer\ODS\Manager\WorkbookManager;
|
use Box\Spout\Writer\ODS\Manager\WorkbookManager;
|
||||||
@ -17,7 +17,7 @@ use \Box\Spout\Common\Escaper;
|
|||||||
* Class InternalFactory
|
* Class InternalFactory
|
||||||
* Factory for all useful types of objects needed by the ODS Writer
|
* Factory for all useful types of objects needed by the ODS Writer
|
||||||
*
|
*
|
||||||
* @package Box\Spout\Writer\ODS\Factory
|
* @package Box\Spout\Writer\ODS\Creator
|
||||||
*/
|
*/
|
||||||
class InternalFactory implements InternalFactoryInterface
|
class InternalFactory implements InternalFactoryInterface
|
||||||
{
|
{
|
@ -5,7 +5,7 @@ namespace Box\Spout\Writer;
|
|||||||
use Box\Spout\Common\Exception\UnsupportedTypeException;
|
use Box\Spout\Common\Exception\UnsupportedTypeException;
|
||||||
use Box\Spout\Common\Helper\GlobalFunctionsHelper;
|
use Box\Spout\Common\Helper\GlobalFunctionsHelper;
|
||||||
use Box\Spout\Common\Type;
|
use Box\Spout\Common\Type;
|
||||||
use Box\Spout\Writer\Factory\EntityFactory;
|
use Box\Spout\Writer\Creator\EntityFactory;
|
||||||
use Box\Spout\Writer\Style\StyleBuilder;
|
use Box\Spout\Writer\Style\StyleBuilder;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -65,7 +65,7 @@ class WriterFactory
|
|||||||
{
|
{
|
||||||
$styleBuilder = new StyleBuilder();
|
$styleBuilder = new StyleBuilder();
|
||||||
$optionsManager = new XLSX\Manager\OptionsManager($styleBuilder);
|
$optionsManager = new XLSX\Manager\OptionsManager($styleBuilder);
|
||||||
$generalFactory = new XLSX\Factory\InternalFactory(new EntityFactory());
|
$generalFactory = new XLSX\Creator\InternalFactory(new EntityFactory());
|
||||||
|
|
||||||
return new XLSX\Writer($optionsManager, $generalFactory);
|
return new XLSX\Writer($optionsManager, $generalFactory);
|
||||||
}
|
}
|
||||||
@ -77,7 +77,7 @@ class WriterFactory
|
|||||||
{
|
{
|
||||||
$styleBuilder = new StyleBuilder();
|
$styleBuilder = new StyleBuilder();
|
||||||
$optionsManager = new ODS\Manager\OptionsManager($styleBuilder);
|
$optionsManager = new ODS\Manager\OptionsManager($styleBuilder);
|
||||||
$generalFactory = new ODS\Factory\InternalFactory(new EntityFactory());
|
$generalFactory = new ODS\Creator\InternalFactory(new EntityFactory());
|
||||||
|
|
||||||
return new ODS\Writer($optionsManager, $generalFactory);
|
return new ODS\Writer($optionsManager, $generalFactory);
|
||||||
}
|
}
|
||||||
|
@ -6,7 +6,7 @@ use Box\Spout\Writer\Manager\OptionsManagerInterface;
|
|||||||
use Box\Spout\Writer\Entity\Options;
|
use Box\Spout\Writer\Entity\Options;
|
||||||
use Box\Spout\Writer\Entity\Worksheet;
|
use Box\Spout\Writer\Entity\Worksheet;
|
||||||
use Box\Spout\Writer\Exception\WriterNotOpenedException;
|
use Box\Spout\Writer\Exception\WriterNotOpenedException;
|
||||||
use Box\Spout\Writer\Factory\InternalFactoryInterface;
|
use Box\Spout\Writer\Creator\InternalFactoryInterface;
|
||||||
use Box\Spout\Writer\Manager\WorkbookManagerInterface;
|
use Box\Spout\Writer\Manager\WorkbookManagerInterface;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -1,15 +1,15 @@
|
|||||||
<?php
|
<?php
|
||||||
|
|
||||||
namespace Box\Spout\Writer\XLSX\Factory;
|
namespace Box\Spout\Writer\XLSX\Creator;
|
||||||
|
|
||||||
use Box\Spout\Common\Escaper;
|
use Box\Spout\Common\Escaper;
|
||||||
use Box\Spout\Common\Helper\StringHelper;
|
use Box\Spout\Common\Helper\StringHelper;
|
||||||
use Box\Spout\Writer\Manager\OptionsManagerInterface;
|
use Box\Spout\Writer\Manager\OptionsManagerInterface;
|
||||||
use Box\Spout\Writer\Entity\Options;
|
use Box\Spout\Writer\Entity\Options;
|
||||||
use Box\Spout\Writer\Factory\EntityFactory;
|
use Box\Spout\Writer\Creator\EntityFactory;
|
||||||
use Box\Spout\Writer\Factory\InternalFactoryInterface;
|
use Box\Spout\Writer\Creator\InternalFactoryInterface;
|
||||||
use Box\Spout\Writer\Factory\WorkbookFactory;
|
use Box\Spout\Writer\Creator\WorkbookFactory;
|
||||||
use Box\Spout\Writer\Factory\WorksheetFactory;
|
use Box\Spout\Writer\Creator\WorksheetFactory;
|
||||||
use Box\Spout\Writer\XLSX\Helper\FileSystemHelper;
|
use Box\Spout\Writer\XLSX\Helper\FileSystemHelper;
|
||||||
use Box\Spout\Writer\XLSX\Helper\SharedStringsHelper;
|
use Box\Spout\Writer\XLSX\Helper\SharedStringsHelper;
|
||||||
use Box\Spout\Writer\XLSX\Helper\StyleHelper;
|
use Box\Spout\Writer\XLSX\Helper\StyleHelper;
|
||||||
@ -20,7 +20,7 @@ use Box\Spout\Writer\XLSX\Manager\WorksheetManager;
|
|||||||
* Class InternalFactory
|
* Class InternalFactory
|
||||||
* Factory for all useful types of objects needed by the XLSX Writer
|
* Factory for all useful types of objects needed by the XLSX Writer
|
||||||
*
|
*
|
||||||
* @package Box\Spout\Writer\XLSX\Factory
|
* @package Box\Spout\Writer\XLSX\Creator
|
||||||
*/
|
*/
|
||||||
class InternalFactory implements InternalFactoryInterface
|
class InternalFactory implements InternalFactoryInterface
|
||||||
{
|
{
|
Loading…
x
Reference in New Issue
Block a user