File tree 6 files changed +19
-148
lines changed
docs/prologue/upgrade-guide
6 files changed +19
-148
lines changed Original file line number Diff line number Diff line change 14
14
- [ Changed directory location] ( #changed-directory-location )
15
15
- [ Database transactions] ( #database-transactions )
16
16
- [ Removed ` $async ` property] ( #removed-async-property )
17
+ - [ Removed ` operations:stub ` command] ( #removed-operationsstub-command )
17
18
18
19
## Low-Impact Changes
19
20
@@ -162,3 +163,11 @@ You can use the previously available `isAsync` method instead.
162
163
163
164
If you published a stub file, then you also need to rename it from ` stubs/action.stub ` to ` stubs/deploy-operation.stub `
164
165
and make changes to its structure.
166
+
167
+ ## Removed ` operations:stub ` command
168
+
169
+ The ` php artisan operations:stub ` console command has been removed. Use another command instead:
170
+
171
+ ``` bash
172
+ php artisan vendor:publish --tag=stubs --provider=" DragonCode\LaravelDeployOperations\ServiceProvider"
173
+ ```
Load Diff This file was deleted.
Original file line number Diff line number Diff line change @@ -12,6 +12,5 @@ class Names
12
12
public const Reset = 'operations:reset ' ;
13
13
public const Rollback = 'operations:rollback ' ;
14
14
public const Status = 'operations:status ' ;
15
- public const StubPublish = 'operations:stub ' ;
16
15
public const Upgrade = 'operations:upgrade ' ;
17
16
}
Load Diff This file was deleted.
Original file line number Diff line number Diff line change @@ -15,6 +15,7 @@ public function boot(): void
15
15
{
16
16
if ($ this ->app ->runningInConsole ()) {
17
17
$ this ->publishConfig ();
18
+ $ this ->publishStub ();
18
19
19
20
$ this ->registerAbout ();
20
21
$ this ->registerCommands ();
@@ -38,7 +39,6 @@ protected function registerCommands(): void
38
39
Console \Reset::class,
39
40
Console \Rollback::class,
40
41
Console \Status::class,
41
- Console \StubPublish::class,
42
42
Console \Upgrade::class,
43
43
]);
44
44
}
@@ -55,6 +55,15 @@ protected function publishConfig(): void
55
55
], 'config ' );
56
56
}
57
57
58
+ protected function publishStub (): void
59
+ {
60
+ $ this ->publishes ([
61
+ __DIR__ . '/../resources/stubs/deploy-operation.stub ' => $ this ->app ->basePath (
62
+ 'stubs/deploy-operation.stub '
63
+ ),
64
+ ], 'stubs ' );
65
+ }
66
+
58
67
protected function registerConfig (): void
59
68
{
60
69
$ this ->mergeConfigFrom (__DIR__ . '/../config/deploy-operations.php ' , 'deploy-operations ' );
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments