api/laravel/View/Engines/EngineResolver.yaml

67 lines
1.4 KiB
YAML
Raw Normal View History

2024-09-26 09:03:21 +00:00
name: EngineResolver
class_comment: null
dependencies:
- name: Closure
type: class
source: Closure
- name: InvalidArgumentException
type: class
source: InvalidArgumentException
properties:
- name: resolvers
visibility: protected
comment: '# * The array of engine resolvers.
# *
# * @var array'
- name: resolved
visibility: protected
comment: '# * The resolved engine instances.
# *
# * @var array'
methods:
- name: register
visibility: public
parameters:
- name: engine
- name: resolver
comment: "# * The array of engine resolvers.\n# *\n# * @var array\n# */\n# protected\
\ $resolvers = [];\n# \n# /**\n# * The resolved engine instances.\n# *\n# * @var\
\ array\n# */\n# protected $resolved = [];\n# \n# /**\n# * Register a new engine\
\ resolver.\n# *\n# * The engine string typically corresponds to a file extension.\n\
# *\n# * @param string $engine\n# * @param \\Closure $resolver\n# * @return\
\ void"
- name: resolve
visibility: public
parameters:
- name: engine
comment: '# * Resolve an engine instance by name.
# *
# * @param string $engine
# * @return \Illuminate\Contracts\View\Engine
# *
# * @throws \InvalidArgumentException'
- name: forget
visibility: public
parameters:
- name: engine
comment: '# * Remove a resolved engine.
# *
# * @param string $engine
# * @return void'
traits:
- Closure
- InvalidArgumentException
interfaces: []