PHP Class Potsky\LaravelLocalizationHelpers\Command\LocalizationAbstract

Inheritance: extends Illuminate\Console\Command, implements Potsky\LaravelLocalizationHelpers\Factory\MessageBagInterface
Afficher le fichier Open project: potsky/laravel-localization-helpers Class Usage Examples

Protected Properties

Свойство Type Description
$configRepository Illuminate\Config\Repository Config repository.
$display boolean Should commands display something
$logInFileFirst boolean Init log file for first log
$manager Potsky\LaravelLocalizationHelpers\Factory\Localization The localization manager

Méthodes publiques

Méthode Description
__construct ( Illuminate\Config\Repository $configRepository ) Create a new command instance.
writeComment ( string $s ) : void Display console message
writeError ( string $s ) : void Display console message
writeInfo ( string $s ) : void Display console message
writeLine ( string $s ) : void Display console message
writeQuestion ( string $s ) : void Display console message

Méthodes protégées

Méthode Description
logInFile ( mixed $txt = '', string $logFile = '/tmp/llh.log' ) Log in a file for debug purpose only

Method Details

__construct() public méthode

Create a new command instance.
public __construct ( Illuminate\Config\Repository $configRepository )
$configRepository Illuminate\Config\Repository

logInFile() protected méthode

Log in a file for debug purpose only
protected logInFile ( mixed $txt = '', string $logFile = '/tmp/llh.log' )
$txt mixed
$logFile string

writeComment() public méthode

Display console message
public writeComment ( string $s ) : void
$s string the message to display
Résultat void

writeError() public méthode

Display console message
public writeError ( string $s ) : void
$s string the message to display
Résultat void

writeInfo() public méthode

Display console message
public writeInfo ( string $s ) : void
$s string the message to display
Résultat void

writeLine() public méthode

Display console message
public writeLine ( string $s ) : void
$s string the message to display
Résultat void

writeQuestion() public méthode

Display console message
public writeQuestion ( string $s ) : void
$s string the message to display
Résultat void

Property Details

$configRepository protected_oe property

Config repository.
protected Repository,Illuminate\Config $configRepository
Résultat Illuminate\Config\Repository

$display protected_oe property

Should commands display something
protected bool $display
Résultat boolean

$logInFileFirst protected_oe static_oe property

Init log file for first log
protected static bool $logInFileFirst
Résultat boolean

$manager protected_oe property

The localization manager
protected Localization,Potsky\LaravelLocalizationHelpers\Factory $manager
Résultat Potsky\LaravelLocalizationHelpers\Factory\Localization