Свойство | Type | Description | |
---|---|---|---|
$generatedFiles | array | ||
$inflector | |||
$objectManager | Neos\Flow\ObjectManagement\ObjectManagerInterface | ||
$packageManager | Neos\Flow\Package\PackageManagerInterface | ||
$reflectionService |
Méthode | Description | |
---|---|---|
generateActionController ( string $packageKey, string $subpackage, string $controllerName, boolean $overwrite = false ) : array | Generate a controller with the given name for the given package | |
generateCommandController ( string $packageKey, string $controllerName, boolean $overwrite = false ) : array | Generate a command controller with the given name for the given package | |
generateCrudController ( string $packageKey, string $subpackage, string $controllerName, boolean $overwrite = false ) : array | Generate an Action Controller with pre-made CRUD methods | |
generateDocumentation ( string $packageKey ) : array | Generate a documentation skeleton for the package key | |
generateLayout ( string $packageKey, string $layoutName, boolean $overwrite = false ) : array | Generate a default layout | |
generateModel ( string $packageKey, string $modelName, array $fieldDefinitions, boolean $overwrite = false ) : array | Generate a model for the package with the given model name and fields | |
generateRepository ( string $packageKey, string $modelName, boolean $overwrite = false ) : array | Generate a repository for a model given a model name and package key | |
generateTestsForModel ( string $packageKey, string $modelName, boolean $overwrite = false ) : array | Generate a dummy testcase for a model for the package with the given model name | |
generateView ( string $packageKey, string $subpackage, string $controllerName, string $viewName, string $templateName, boolean $overwrite = false ) : array | Generate a view with the given name for the given package and controller |
Méthode | Description | |
---|---|---|
generateFile ( string $targetPathAndFilename, string $fileContent, boolean $force = false ) : void | Generate a file with the given content and add it to the generated files | |
getPrimaryNamespaceAndEntryPath ( Neos\Flow\Package\PackageInterface $package ) : array | ||
normalizeFieldDefinitions ( array $fieldDefinitions, string $namespace = '' ) : array | Normalize types and prefix types with namespaces | |
renderTemplate ( string $templatePathAndFilename, array $contextVariables ) : string | Render the given template file with the given variables |
public generateActionController ( string $packageKey, string $subpackage, string $controllerName, boolean $overwrite = false ) : array | ||
$packageKey | string | The package key of the controller's package |
$subpackage | string | An optional subpackage name |
$controllerName | string | The name of the new controller |
$overwrite | boolean | Overwrite any existing files? |
Résultat | array | An array of generated filenames |
public generateCommandController ( string $packageKey, string $controllerName, boolean $overwrite = false ) : array | ||
$packageKey | string | The package key of the controller's package |
$controllerName | string | The name of the new controller |
$overwrite | boolean | Overwrite any existing files? |
Résultat | array | An array of generated filenames |
public generateCrudController ( string $packageKey, string $subpackage, string $controllerName, boolean $overwrite = false ) : array | ||
$packageKey | string | The package key of the controller's package |
$subpackage | string | An optional subpackage name |
$controllerName | string | The name of the new controller |
$overwrite | boolean | Overwrite any existing files? |
Résultat | array | An array of generated filenames |
public generateDocumentation ( string $packageKey ) : array | ||
$packageKey | string | The package key |
Résultat | array | An array of generated filenames |
public generateLayout ( string $packageKey, string $layoutName, boolean $overwrite = false ) : array | ||
$packageKey | string | The package key of the controller's package |
$layoutName | string | The name of the layout |
$overwrite | boolean | Overwrite any existing files? |
Résultat | array | An array of generated filenames |
public generateModel ( string $packageKey, string $modelName, array $fieldDefinitions, boolean $overwrite = false ) : array | ||
$packageKey | string | The package key of the controller's package |
$modelName | string | The name of the new model |
$fieldDefinitions | array | The field definitions |
$overwrite | boolean | Overwrite any existing files? |
Résultat | array | An array of generated filenames |
public generateTestsForModel ( string $packageKey, string $modelName, boolean $overwrite = false ) : array | ||
$packageKey | string | The package key of the controller's package |
$modelName | string | The name of the new model fpr which to generate the test |
$overwrite | boolean | Overwrite any existing files? |
Résultat | array | An array of generated filenames |
public generateView ( string $packageKey, string $subpackage, string $controllerName, string $viewName, string $templateName, boolean $overwrite = false ) : array | ||
$packageKey | string | The package key of the controller's package |
$subpackage | string | An optional subpackage name |
$controllerName | string | The name of the new controller |
$viewName | string | The name of the view |
$templateName | string | The name of the view |
$overwrite | boolean | Overwrite any existing files? |
Résultat | array | An array of generated filenames |
protected getPrimaryNamespaceAndEntryPath ( Neos\Flow\Package\PackageInterface $package ) : array | ||
$package | Neos\Flow\Package\PackageInterface | |
Résultat | array |
protected Inflector,Neos\Kickstarter\Utility $inflector | ||
Résultat |
protected ObjectManagerInterface,Neos\Flow\ObjectManagement $objectManager | ||
Résultat | Neos\Flow\ObjectManagement\ObjectManagerInterface |
protected PackageManagerInterface,Neos\Flow\Package $packageManager | ||
Résultat | Neos\Flow\Package\PackageManagerInterface |