PHP Class Shopware\PluginCreator\Services\Generator

显示文件 Open project: shopwarelabs/sw-cli-tools Class Usage Examples

Public Methods

Method Description
__construct ( Shopware\PluginCreator\Services\IoAdapter\IoAdapter $ioAdapter, Configuration $configuration, NameGenerator $nameGenerator, Template $template, Shopware\PluginCreator\Services\TemplateFileProvider\FileProviderLoaderInterface $fileProviderLoader, Shopware\PluginCreator\Services\WorkingDirectoryProvider\OutputDirectoryProviderInterface $outputDirectoryProvider )
run ( ) Creates the actual plugin from template files

Private Methods

Method Description
configureTemplate ( ) setup the template
createFilesFromTemplate ( $files ) Creates files from an array of template files
processTemplateFiles ( ) Will step through all known template files, render and copy them to the configured destination

Method Details

__construct() public method

public __construct ( Shopware\PluginCreator\Services\IoAdapter\IoAdapter $ioAdapter, Configuration $configuration, NameGenerator $nameGenerator, Template $template, Shopware\PluginCreator\Services\TemplateFileProvider\FileProviderLoaderInterface $fileProviderLoader, Shopware\PluginCreator\Services\WorkingDirectoryProvider\OutputDirectoryProviderInterface $outputDirectoryProvider )
$ioAdapter Shopware\PluginCreator\Services\IoAdapter\IoAdapter
$configuration Shopware\PluginCreator\Struct\Configuration
$nameGenerator NameGenerator
$template Template
$fileProviderLoader Shopware\PluginCreator\Services\TemplateFileProvider\FileProviderLoaderInterface
$outputDirectoryProvider Shopware\PluginCreator\Services\WorkingDirectoryProvider\OutputDirectoryProviderInterface

run() public method

Creates the actual plugin from template files
public run ( )