|
| $name = 'versioning:update' |
|
| $description = 'Generate and update app\'s version via git.' |
|
Definition at line 9 of file Versioning.php.
App\Console\Commands\Versioning::__construct |
( |
| ) |
|
Create a new command instance.
- Returns
- void
Definition at line 30 of file Versioning.php.
32 parent::__construct();
App\Console\Commands\Versioning::fire |
( |
| ) |
|
Execute the console command.
- Returns
- void
Definition at line 40 of file Versioning.php.
44 $versionFile = app_path().
'/config/version.php';
48 $hash_version = $this->argument(
'app_version');
51 $version = explode(
'-', $hash_version);
52 $realVersion = $version[0] .
'-' . $version[1];
55 $array = var_export(array(
'app_version' => $realVersion,
'hash_version' => $hash_version),
true);
65 \File::put($versionFile, $content);
66 $this->line(
'Setting version: '. \config(
'version.latest'));
App\Console\Commands\Versioning::getArguments |
( |
| ) |
|
|
protected |
Get the console command arguments.
- Returns
- array
Definition at line 74 of file Versioning.php.
77 array(
'app_version', InputArgument::REQUIRED,
'version number is required.'),
App\Console\Commands\Versioning::getOptions |
( |
| ) |
|
|
protected |
Get the console command options.
- Returns
- array
Definition at line 86 of file Versioning.php.
App\Console\Commands\Versioning::$description = 'Generate and update app\'s version via git.' |
|
protected |
App\Console\Commands\Versioning::$name = 'versioning:update' |
|
protected |
The documentation for this class was generated from the following file: