mirror of
https://github.com/pnx/dotfiles
synced 2026-10-14 12:16:47 +02:00
phpactor: adding laravel-command template
This commit is contained in:
parent
f20a320f08
commit
48869bfa4a
2 changed files with 23 additions and 0 deletions
|
|
@ -7,6 +7,7 @@ phpunit.enabled: true
|
||||||
code_transform.class_new.variants:
|
code_transform.class_new.variants:
|
||||||
laravel-model: laravel-model
|
laravel-model: laravel-model
|
||||||
laravel-provider: laravel-provider
|
laravel-provider: laravel-provider
|
||||||
|
laravel-command: laravel-command
|
||||||
laravel-facade: laravel-facade
|
laravel-facade: laravel-facade
|
||||||
laravel-phpunit-test: laravel-phpunit-test
|
laravel-phpunit-test: laravel-phpunit-test
|
||||||
phpunit-test: phpunit-test
|
phpunit-test: phpunit-test
|
||||||
|
|
|
||||||
22
phpactor/templates/laravel-command/SourceCode.php.twig
Normal file
22
phpactor/templates/laravel-command/SourceCode.php.twig
Normal file
|
|
@ -0,0 +1,22 @@
|
||||||
|
<?php
|
||||||
|
|
||||||
|
namespace {{ prototype.namespace }};
|
||||||
|
|
||||||
|
use Illuminate\Console\Attributes\Description;
|
||||||
|
use Illuminate\Console\Attributes\Signature;
|
||||||
|
use Illuminate\Console\Command;
|
||||||
|
|
||||||
|
{% for class in prototype.classes %}
|
||||||
|
#[Signature('app:{{ class.name | lower }}')]
|
||||||
|
#[Description('Command description')]
|
||||||
|
class {{ class.name }} extends Command
|
||||||
|
{
|
||||||
|
/**
|
||||||
|
* Execute the console command.
|
||||||
|
*/
|
||||||
|
public function handle()
|
||||||
|
{
|
||||||
|
//
|
||||||
|
}
|
||||||
|
}
|
||||||
|
{% endfor %}
|
||||||
Loading…
Add table
Add a link
Reference in a new issue