Application
in package
implements
ContainerInterface, Registry
Class Application
Interfaces, Classes and Traits
- ContainerInterface
- Registry
- Interface Registry
Table of Contents
- VERSION = 'v4.8.0.0'
- $container : Container
- $eventListenerProvider : EventListenerProvider|null
- $prioritisedEventListenerProvider : PrioritizingEventListenerProvider|null
- __construct() : mixed
- Application constructor.
- attachEventListener() : void
- attachPrioritisedEventListener() : void
- get() : mixed
- has() : bool
- inflect() : Inflector
- Inflects a type.
- main() : void
- register() : Definition
- Registers a definition to the application.
- registerProvider() : void
- registerShared() : Definition
- Registers a shared definition to the application.
Constants
VERSION
public
mixed
VERSION
= 'v4.8.0.0'
Properties
$container
private
Container
$container
$eventListenerProvider
private
EventListenerProvider|null
$eventListenerProvider
$prioritisedEventListenerProvider
private
PrioritizingEventListenerProvider|null
$prioritisedEventListenerProvider
Methods
__construct()
Application constructor.
public
__construct(Container $container) : mixed
Parameters
- $container : Container
Return values
mixed —attachEventListener()
public
attachEventListener(string $eventClass, string $listener) : void
Parameters
- $eventClass : string
- $listener : string
Return values
void —attachPrioritisedEventListener()
public
attachPrioritisedEventListener(string $eventClass, string $listener) : void
Parameters
- $eventClass : string
- $listener : string
Tags
Return values
void —get()
public
get(mixed $id) : mixed
Parameters
- $id : mixed
Tags
Return values
mixed —has()
public
has(mixed $id) : bool
Parameters
- $id : mixed
Tags
Return values
bool —inflect()
Inflects a type.
public
inflect(string $type[, callable $callback = null ]) : Inflector
Parameters
- $type : string
- $callback : callable = null
Tags
Return values
Inflector —main()
public
static main(Kernel $kernel, Bootstrapper $bootstrapper) : void
Parameters
- $kernel : Kernel
- $bootstrapper : Bootstrapper
Return values
void —register()
Registers a definition to the application.
public
register(string $id[, mixed $concrete = null ]) : Definition
Parameters
- $id : string
- $concrete : mixed = null
Tags
Return values
Definition —registerProvider()
public
registerProvider(string $serviceProvider) : void
Parameters
- $serviceProvider : string
Return values
void —registerShared()
Registers a shared definition to the application.
public
registerShared(string $id[, mixed $concrete = null ]) : Definition
Parameters
- $id : string
- $concrete : mixed = null