platform/api/laravel/Foundation/Console/PolicyMakeCommand.yaml

156 lines
3.5 KiB
YAML
Raw Normal View History

2024-09-02 17:44:11 +00:00
name: PolicyMakeCommand
class_comment: null
dependencies:
- name: GeneratorCommand
type: class
source: Illuminate\Console\GeneratorCommand
- name: Str
type: class
source: Illuminate\Support\Str
- name: LogicException
type: class
source: LogicException
- name: AsCommand
type: class
source: Symfony\Component\Console\Attribute\AsCommand
- name: InputInterface
type: class
source: Symfony\Component\Console\Input\InputInterface
- name: InputOption
type: class
source: Symfony\Component\Console\Input\InputOption
- name: OutputInterface
type: class
source: Symfony\Component\Console\Output\OutputInterface
properties:
- name: name
visibility: protected
comment: '# * The console command name.
# *
# * @var string'
- name: description
visibility: protected
comment: '# * The console command description.
# *
# * @var string'
- name: type
visibility: protected
comment: '# * The type of class being generated.
# *
# * @var string'
methods:
- name: buildClass
visibility: protected
parameters:
- name: name
comment: "# * The console command name.\n# *\n# * @var string\n# */\n# protected\
\ $name = 'make:policy';\n# \n# /**\n# * The console command description.\n# *\n\
# * @var string\n# */\n# protected $description = 'Create a new policy class';\n\
# \n# /**\n# * The type of class being generated.\n# *\n# * @var string\n# */\n\
# protected $type = 'Policy';\n# \n# /**\n# * Build the class with the given name.\n\
# *\n# * @param string $name\n# * @return string"
- name: replaceUserNamespace
visibility: protected
parameters:
- name: stub
comment: '# * Replace the User model namespace.
# *
# * @param string $stub
# * @return string'
- name: userProviderModel
visibility: protected
parameters: []
comment: '# * Get the model for the guard''s user provider.
# *
# * @return string|null
# *
# * @throws \LogicException'
- name: replaceModel
visibility: protected
parameters:
- name: stub
- name: model
comment: '# * Replace the model for the given stub.
# *
# * @param string $stub
# * @param string $model
# * @return string'
- name: getStub
visibility: protected
parameters: []
comment: '# * Get the stub file for the generator.
# *
# * @return string'
- name: resolveStubPath
visibility: protected
parameters:
- name: stub
comment: '# * Resolve the fully-qualified path to the stub.
# *
# * @param string $stub
# * @return string'
- name: getDefaultNamespace
visibility: protected
parameters:
- name: rootNamespace
comment: '# * Get the default namespace for the class.
# *
# * @param string $rootNamespace
# * @return string'
- name: getOptions
visibility: protected
parameters: []
comment: '# * Get the console command arguments.
# *
# * @return array'
- name: afterPromptingForMissingArguments
visibility: protected
parameters:
- name: input
- name: output
comment: '# * Interact further with the user if they were prompted for missing arguments.
# *
# * @param \Symfony\Component\Console\Input\InputInterface $input
# * @param \Symfony\Component\Console\Output\OutputInterface $output
# * @return void'
traits:
- Illuminate\Console\GeneratorCommand
- Illuminate\Support\Str
- LogicException
- Symfony\Component\Console\Attribute\AsCommand
- Symfony\Component\Console\Input\InputInterface
- Symfony\Component\Console\Input\InputOption
- Symfony\Component\Console\Output\OutputInterface
interfaces: []