PHP Class JonathanTorres\Construct\Commands\ConstructCommand

Inheritance: extends Symfony\Component\Console\Command\Command
Datei anzeigen Open project: jonathantorres/construct

Protected Properties

Property 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.

Public Methods

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

Protected Methods

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

Private Methods

Method 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 method

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

configure() protected method

Command configuration.
protected configure ( ) : void
return void

execute() protected method

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
return void

Property Details

$construct protected_oe property

The construct implementation.
protected string $construct
return string

$defaults protected_oe property

Construct defaults.
protected Defaults,JonathanTorres\Construct $defaults
return JonathanTorres\Construct\Defaults

$filesystem protected_oe property

Filesystem helper.
protected Filesystem,JonathanTorres\Construct\Helpers $filesystem
return JonathanTorres\Construct\Helpers\Filesystem

$settings protected_oe property

Construct settings.
protected Settings,JonathanTorres\Construct $settings
return JonathanTorres\Construct\Settings

$str protected_oe property

String helper.
protected Str,JonathanTorres\Construct $str
return JonathanTorres\Construct\Str

$systemPhpVersion protected_oe property

Php version currently used on the system.
protected string $systemPhpVersion
return string