Свойство | Type | Description | |
---|---|---|---|
$crafter | Ptondereau\PackMe\Crafters\CrafterInterface | Crafter. |
Méthode | Description | |
---|---|---|
__construct ( Ptondereau\PackMe\Crafters\CrafterInterface $crafter, Symfony\Component\Console\Helper\HelperSet $helperSet ) | CreateCommand constructor. | |
__invoke ( $dir, Symfony\Component\Console\Input\InputInterface $input, Symfony\Component\Console\Output\OutputInterface $output ) |
Méthode | Description | |
---|---|---|
askForAuthor ( string $author = 'Author Name <[email protected]>' ) : string | ||
askForDescription ( boolean | string $description = false ) : string | ||
askForPackageName ( string $package = 'vendor/package' ) : string |
Méthode | Description | |
---|---|---|
isValidEmail ( $email ) : boolean | Check if a given email is a good email. | |
parseAuthorString ( string $author ) : array | Parse the author string. |
public __construct ( Ptondereau\PackMe\Crafters\CrafterInterface $crafter, Symfony\Component\Console\Helper\HelperSet $helperSet ) | ||
$crafter | Ptondereau\PackMe\Crafters\CrafterInterface | |
$helperSet | Symfony\Component\Console\Helper\HelperSet |
public __invoke ( $dir, Symfony\Component\Console\Input\InputInterface $input, Symfony\Component\Console\Output\OutputInterface $output ) | ||
$input | Symfony\Component\Console\Input\InputInterface | |
$output | Symfony\Component\Console\Output\OutputInterface |
protected askForAuthor ( string $author = 'Author Name <[email protected]>' ) : string | ||
$author | string | |
Résultat | string |
protected askForPackageName ( string $package = 'vendor/package' ) : string | ||
$package | string | |
Résultat | string |