66 lines
1.4 KiB
YAML
66 lines
1.4 KiB
YAML
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: []
|