PHP Class JonathanTorres\Construct\Commands\ConstructCommand

Inheritance: extends Symfony\Component\Console\Command\Command
Afficher le fichier Open project: jonathantorres/construct

Protected Properties

Свойство Type Description
$construct string The construct implementation.
$defaults JonathanTorres\Construct\Defaults Construct defaults.
$filesystem JonathanTorres\Construct\Helpers\Filesystem Filesystem helper.
$settings JonathanTorres\Construct\Settings Construct settings.
$str JonathanTorres\Construct\Str String helper.
$systemPhpVersion string Php version currently used on the system.

Méthodes publiques

Méthode Description
__construct ( Construct $construct, Str $str, Filesystem $filesystem ) : void Initialize.

Méthodes protégées

Méthode Description
configure ( ) : void Command configuration.
execute ( Symfony\Component\Console\Input\InputInterface $input, Symfony\Component\Console\Output\OutputInterface $output ) : void Execute command.

Private Methods

Méthode Description
bootstrappedCodeceptionMessage ( string $testFramework, Symfony\Component\Console\Output\OutputInterface $output ) : void Show message if codeception is bootstrapped successfully.
initializedBehatMessage ( string $testFramework, Symfony\Component\Console\Output\OutputInterface $output ) : void Show message if behat is initialized successfully.
initializedGitMessage ( Symfony\Component\Console\Output\OutputInterface $output ) : void Show message if an empty git repo is initialized.
isConfigurationApplicable ( $configuration ) : boolean Determine if a configuration is applicable.
phpVersionWarning ( Symfony\Component\Console\Output\OutputInterface $output ) : string Show warning if an invalid php version or a version greater than the one on the system is specified.
projectNameContainsPhpWarning ( Symfony\Component\Console\Output\OutputInterface $output ) : void Show warning if the project name contains the string "php"
supportedLicenseWarning ( Symfony\Component\Console\Output\OutputInterface $output ) : string Show warning if a license that is not supported is specified.
testFrameworkWarning ( Symfony\Component\Console\Output\OutputInterface $output ) : string Show warning if a test framework that is not supported is specified.
warnAndOverwriteInvalidSettingsWithDefaults ( Symfony\Component\Console\Output\OutputInterface $output ) : void Shows warnings and sets a new settings which overwrites invalid settings with default values.

Method Details

__construct() public méthode

Initialize.
public __construct ( Construct $construct, Str $str, Filesystem $filesystem ) : void
$construct JonathanTorres\Construct\Construct
$str JonathanTorres\Construct\Helpers\Str
$filesystem JonathanTorres\Construct\Helpers\Filesystem
Résultat void

configure() protected méthode

Command configuration.
protected configure ( ) : void
Résultat void

execute() protected méthode

Execute command.
protected execute ( Symfony\Component\Console\Input\InputInterface $input, Symfony\Component\Console\Output\OutputInterface $output ) : void
$input Symfony\Component\Console\Input\InputInterface
$output Symfony\Component\Console\Output\OutputInterface
Résultat void

Property Details

$construct protected_oe property

The construct implementation.
protected string $construct
Résultat string

$defaults protected_oe property

Construct defaults.
protected Defaults,JonathanTorres\Construct $defaults
Résultat JonathanTorres\Construct\Defaults

$filesystem protected_oe property

Filesystem helper.
protected Filesystem,JonathanTorres\Construct\Helpers $filesystem
Résultat JonathanTorres\Construct\Helpers\Filesystem

$settings protected_oe property

Construct settings.
protected Settings,JonathanTorres\Construct $settings
Résultat JonathanTorres\Construct\Settings

$str protected_oe property

String helper.
protected Str,JonathanTorres\Construct $str
Résultat JonathanTorres\Construct\Str

$systemPhpVersion protected_oe property

Php version currently used on the system.
protected string $systemPhpVersion
Résultat string