api/laravel/Foundation/Console/EventGenerateCommand.yaml
2024-09-26 02:03:21 -07:00

79 lines
2 KiB
YAML

name: EventGenerateCommand
class_comment: null
dependencies:
- name: Command
type: class
source: Illuminate\Console\Command
- name: EventServiceProvider
type: class
source: Illuminate\Foundation\Support\Providers\EventServiceProvider
- name: AsCommand
type: class
source: Symfony\Component\Console\Attribute\AsCommand
properties:
- name: name
visibility: protected
comment: '# * The console command name.
# *
# * @var string'
- name: description
visibility: protected
comment: '# * The console command description.
# *
# * @var string'
- name: hidden
visibility: protected
comment: '# * Indicates whether the command should be shown in the Artisan command
list.
# *
# * @var bool'
methods:
- name: handle
visibility: public
parameters: []
comment: "# * The console command name.\n# *\n# * @var string\n# */\n# protected\
\ $name = 'event:generate';\n# \n# /**\n# * The console command description.\n\
# *\n# * @var string\n# */\n# protected $description = 'Generate the missing events\
\ and listeners based on registration';\n# \n# /**\n# * Indicates whether the\
\ command should be shown in the Artisan command list.\n# *\n# * @var bool\n#\
\ */\n# protected $hidden = true;\n# \n# /**\n# * Execute the console command.\n\
# *\n# * @return void"
- name: makeEventAndListeners
visibility: protected
parameters:
- name: event
- name: listeners
comment: '# * Make the event and listeners for the given event.
# *
# * @param string $event
# * @param array $listeners
# * @return void'
- name: makeListeners
visibility: protected
parameters:
- name: event
- name: listeners
comment: '# * Make the listeners for the given event.
# *
# * @param string $event
# * @param array $listeners
# * @return void'
traits:
- Illuminate\Console\Command
- Illuminate\Foundation\Support\Providers\EventServiceProvider
- Symfony\Component\Console\Attribute\AsCommand
interfaces: []