Skip to content

VendorPublishCommand

Properties

name

protected string $name

Methods

configure

Configure commands.

protected configure(): void

handle

public handle(): int

Throws:


resolveDestination

private resolveDestination(string $from, string $type): string

Parameters:

Parameter Type Description
$from string
$type string

copyFile

private copyFile(string $from, string $to, bool $force): void

Parameters:

Parameter Type Description
$from string
$to string
$force bool

Throws:


copyDirectory

private copyDirectory(string $from, string $to, bool $force): void

Parameters:

Parameter Type Description
$from string
$to string
$force bool

Throws:


listPublishables

private listPublishables(): int

publishDefinedProvider

private publishDefinedProvider(): int

Throws:


findKeysLike

Search array keys for a substring and return all matching keys.

protected findKeysLike(string $needle, array $haystack, bool $caseSensitive = true): array

Parameters:

Parameter Type Description
$needle string
$haystack array
$caseSensitive bool

Return Value:

List of matching keys (empty if none found).


Inherited methods

__construct

public __construct(\Codefy\Framework\Application $codefy): mixed

Parameters:

Parameter Type Description
$codefy \Codefy\Framework\Application

configure

Configure commands.

protected configure(): void

execute

protected execute(\Symfony\Component\Console\Input\InputInterface $input, \Symfony\Component\Console\Output\OutputInterface $output): int

Parameters:

Parameter Type Description
$input \Symfony\Component\Console\Input\InputInterface
$output \Symfony\Component\Console\Output\OutputInterface

Throws:


getArgument

Returns the argument value for the given argument name.

protected getArgument(string|null $key = null): mixed

Parameters:

Parameter Type Description
$key string|null

getOptions

Returns the option value for the given option name.

protected getOptions(string|null $key = null): bool|string|string[]

Parameters:

Parameter Type Description
$key string|null

terminalRaw

Outputs the string to the console without any tag.

protected terminalRaw(string $string): void

Parameters:

Parameter Type Description
$string string

terminalInfo

Output to the terminal wrap in info tags.

protected terminalInfo(string $string): void

Parameters:

Parameter Type Description
$string string

terminalComment

Output to the terminal wrap in comment tags.

protected terminalComment(string $string): void

Parameters:

Parameter Type Description
$string string

terminalQuestion

Output to the terminal wrap in question tags.

protected terminalQuestion(string $string): void

Parameters:

Parameter Type Description
$string string

terminalError

Output to the terminal wrap in error tags.

protected terminalError(string $string): void

Parameters:

Parameter Type Description
$string string

terminalNewLine

Output to the terminal with a blank line.

protected terminalNewLine(int $count = 1): void

Parameters:

Parameter Type Description
$count int

confirm

protected confirm(string $question): mixed

Parameters:

Parameter Type Description
$question string

ask

protected ask(string $question, bool|float|int|string|null $default = null): mixed

Parameters:

Parameter Type Description
$question string
$default bool|float|int|string|null

choice

protected choice(string $question, array $choices, bool|float|int|string|null $default = null, string|null $message = null): mixed

Parameters:

Parameter Type Description
$question string
$choices array
$default bool|float|int|string|null
$message string|null

multiChoice

protected multiChoice(string $question, array $choices, bool|float|int|string|null $default = null, string|null $message = null): mixed

Parameters:

Parameter Type Description
$question string
$choices array
$default bool|float|int|string|null
$message string|null


Automatically generated on 2025-10-13