api/laravel/Routing/ImplicitRouteBinding.yaml

84 lines
2.1 KiB
YAML
Raw Normal View History

2024-09-26 09:03:21 +00:00
name: ImplicitRouteBinding
class_comment: null
dependencies:
- name: UrlRoutable
type: class
source: Illuminate\Contracts\Routing\UrlRoutable
- name: ModelNotFoundException
type: class
source: Illuminate\Database\Eloquent\ModelNotFoundException
- name: SoftDeletes
type: class
source: Illuminate\Database\Eloquent\SoftDeletes
- name: BackedEnumCaseNotFoundException
type: class
source: Illuminate\Routing\Exceptions\BackedEnumCaseNotFoundException
- name: Reflector
type: class
source: Illuminate\Support\Reflector
- name: Str
type: class
source: Illuminate\Support\Str
properties: []
methods:
- name: resolveForRoute
visibility: public
parameters:
- name: container
- name: route
comment: '# * Resolve the implicit route bindings for the given route.
# *
# * @param \Illuminate\Container\Container $container
# * @param \Illuminate\Routing\Route $route
# * @return void
# *
# * @throws \Illuminate\Database\Eloquent\ModelNotFoundException<\Illuminate\Database\Eloquent\Model>
# * @throws \Illuminate\Routing\Exceptions\BackedEnumCaseNotFoundException'
- name: resolveBackedEnumsForRoute
visibility: protected
parameters:
- name: route
- name: parameters
comment: '# * Resolve the Backed Enums route bindings for the route.
# *
# * @param \Illuminate\Routing\Route $route
# * @param array $parameters
# * @return \Illuminate\Routing\Route
# *
# * @throws \Illuminate\Routing\Exceptions\BackedEnumCaseNotFoundException'
- name: getParameterName
visibility: protected
parameters:
- name: name
- name: parameters
comment: '# * Return the parameter name if it exists in the given parameters.
# *
# * @param string $name
# * @param array $parameters
# * @return string|null'
traits:
- Illuminate\Contracts\Routing\UrlRoutable
- Illuminate\Database\Eloquent\ModelNotFoundException
- Illuminate\Database\Eloquent\SoftDeletes
- Illuminate\Routing\Exceptions\BackedEnumCaseNotFoundException
- Illuminate\Support\Reflector
- Illuminate\Support\Str
interfaces: []