Jelix 1.8.14-pre

CreateApp extends AbstractCommand
in package

Tags

Table of Contents

COMPJSON_CURRENT  = 'current'
COMPJSON_NEW  = 'new'
COMPJSON_NEW_CURRENT_JELIX  = 'new-current-jelix'
COMPJSON_NONE  = 'none'
$appApplication  : Application
$composerMode  : string
$config  : CommandConfig
$defaultRuleForComposerJson  : mixed
$forbiddenRuleForComposerJson  : mixed
$jelixInstalledAsComposerPackage  : mixed
$jelixPath  : mixed
$output  : OutputInterface
$vendorPath  : mixed
$isVerbose  : mixed
__construct()  : mixed
_createSkeleton()  : array<string|int, mixed>
askAppInfos()  : mixed
configure()  : mixed
convertRp()  : mixed
createDir()  : mixed
helper method to create a new directory. it set the rights on the directory as indicated in the configuration of jelix-scripts.
createFile()  : bool
helper method to create a file from a template stored in the templates/ directory of jelix-scripts. it set the rights on the file as indicated in the configuration of jelix-scripts.
execute()  : mixed
executeSubCommand()  : mixed
prepareSubCommandApp()  : mixed
updateGitIgnoreForTemp()  : mixed
verbose()  : mixed

Constants

COMPJSON_CURRENT

public mixed COMPJSON_CURRENT = 'current'
Tags

COMPJSON_NEW

public mixed COMPJSON_NEW = 'new'
Tags

COMPJSON_NEW_CURRENT_JELIX

public mixed COMPJSON_NEW_CURRENT_JELIX = 'new-current-jelix'
Tags

COMPJSON_NONE

public mixed COMPJSON_NONE = 'none'
Tags

Properties

$appApplication

protected Application $appApplication
Tags

$composerMode

protected string $composerMode = ''

on of COMPJSON_* const

Tags

$defaultRuleForComposerJson

protected mixed $defaultRuleForComposerJson = 'current'
Tags

$forbiddenRuleForComposerJson

protected mixed $forbiddenRuleForComposerJson = ''
Tags

$jelixInstalledAsComposerPackage

protected mixed $jelixInstalledAsComposerPackage
Tags

$vendorPath

protected mixed $vendorPath
Tags

Methods

__construct()

public __construct(mixed $jelixPath, mixed $jelixAsComposerPackage, mixed $vendorPath, mixed $defaultRule[, mixed $forbiddenRule = '' ]) : mixed
Parameters
$jelixPath : mixed
$jelixAsComposerPackage : mixed
$vendorPath : mixed
$defaultRule : mixed
$forbiddenRule : mixed = ''
Tags
Return values
mixed

_createSkeleton()

protected _createSkeleton(string $appPath, string $appName, string $wwwpath, InputInterface $input) : array<string|int, mixed>
Parameters
$appPath : string

absolute path to the new application directory

$appName : string
$wwwpath : string
$input : InputInterface
Tags
Return values
array<string|int, mixed>

list of relative path of some directories for the application

askAppInfos()

protected askAppInfos(InputInterface $input, OutputInterface $output) : mixed
Parameters
$input : InputInterface
$output : OutputInterface
Tags
Return values
mixed

configure()

protected configure() : mixed
Tags
Return values
mixed

convertRp()

protected convertRp(mixed $rp) : mixed
Parameters
$rp : mixed
Tags
Return values
mixed

createDir()

helper method to create a new directory. it set the rights on the directory as indicated in the configuration of jelix-scripts.

protected createDir(string $dirname) : mixed
Parameters
$dirname : string

the path of the directory

Tags
Return values
mixed

createFile()

helper method to create a file from a template stored in the templates/ directory of jelix-scripts. it set the rights on the file as indicated in the configuration of jelix-scripts.

protected createFile(string $filename, string $template[, mixed $tplparam = array() ][, mixed $fileType = 'File' ]) : bool
Parameters
$filename : string

the path of the new file created from the template

$template : string

relative path to the templates/ directory, of the template file

$tplparam : mixed = array()
$fileType : mixed = 'File'
Tags
Return values
bool

true if it is ok

execute()

protected execute(InputInterface $input, OutputInterface $output) : mixed
Parameters
$input : InputInterface
$output : OutputInterface
Tags
Return values
mixed

executeSubCommand()

protected executeSubCommand(mixed $name, mixed $arguments, mixed $output) : mixed
Parameters
$name : mixed
$arguments : mixed
$output : mixed
Tags
Return values
mixed

prepareSubCommandApp()

protected prepareSubCommandApp() : mixed
Tags
Return values
mixed

updateGitIgnoreForTemp()

protected updateGitIgnoreForTemp(string $appPath, string $appName) : mixed
Parameters
$appPath : string

absolute path of the application

$appName : string
Tags
Return values
mixed

Search results