Registry
in
Interface Registry
Table of Contents
- inflect() : Inflector
- Inflects a type.
- register() : Definition
- Registers a definition to the application.
- registerShared() : Definition
- Registers a shared definition to the application.
Methods
inflect()
Inflects a type.
public
inflect(string $type[, callable|null $callback = null ]) : Inflector
If an inflected type is requested from the container, the inflector performs some task (invokes methods on the type) before resolve and return it.
Parameters
- $type : string
- $callback : callable|null = null
Return values
Inflector —register()
Registers a definition to the application.
public
register(string $id[, mixed|null $concrete = null ]) : Definition
Parameters
- $id : string
- $concrete : mixed|null = null
Return values
Definition —registerShared()
Registers a shared definition to the application.
public
registerShared(string $id[, mixed|null $concrete = null ]) : Definition
Parameters
- $id : string
- $concrete : mixed|null = null