This commit is a big refactor that improves the code organization. It focuses on how dependencies are injected into the different classes. This is now done via some factories. Also, the code is now built around entities (data model that only exposes getters and setters), managers (used to manage an entity) and helpers (used by the managers to perform some specific tasks). The refactoring is not fully complete, as some dependencies are still hidden...
29 lines
790 B
PHP
29 lines
790 B
PHP
<?php
|
|
|
|
namespace Box\Spout\Writer\Common\Helper;
|
|
|
|
use \Box\Spout\Common\Helper\FileSystemHelperInterface;
|
|
|
|
/**
|
|
* Class FileSystemHelperInterface
|
|
* This interface describes helper functions to help with the file system operations
|
|
* like files/folders creation & deletion
|
|
*
|
|
* @package Box\Spout\Writer\Common\Helper
|
|
*/
|
|
interface FileSystemWithRootFolderHelperInterface extends FileSystemHelperInterface
|
|
{
|
|
/**
|
|
* Creates all the folders needed to create a spreadsheet, as well as the files that won't change.
|
|
*
|
|
* @return void
|
|
* @throws \Box\Spout\Common\Exception\IOException If unable to create at least one of the base folders
|
|
*/
|
|
public function createBaseFilesAndFolders();
|
|
|
|
/**
|
|
* @return string
|
|
*/
|
|
public function getRootFolder();
|
|
}
|