Application extends Pimple
Table of Contents
$instance | Application | |
---|---|---|
$initialized | ||
$booted | ||
$providers | ||
$parentContainer | ContainerInterface | |
getInstance() | Application | |
clearInstance() | mixed | |
__clone() | mixed | |
__construct() | mixed | |
isBooted() | Application::runが実行されているか親クラスのプロパティから判定 | bool |
initialize() | Initialize to Application. | mixed |
register() | Registers a service provider. | Application |
boot() | Boots all service providers. | mixed |
setParentContainer() | Set to the Symfony ContainerInterface. | mixed |
getParentContainer() | Get ParentContainer. | ContainerInterface |
Properties
$instance
protected
static Application
$instance
$initialized
protected
mixed
$initialized
= false
$booted
protected
mixed
$booted
= false
$providers
protected
mixed
$providers
= []
$parentContainer
protected
ContainerInterface
$parentContainer
Methods
getInstance()
public
static getInstance(
[ $values :
array
= [] ]
)
: Application
Parameters
- $values : array = []
Return values
ApplicationclearInstance()
public
static clearInstance(
)
: mixed
Return values
mixed__clone()
public
final __clone(
)
: mixed
Return values
mixed__construct()
public
__construct(
[ $values :
array
= [] ]
)
: mixed
Parameters
- $values : array = []
Return values
mixedisBooted()
Application::runが実行されているか親クラスのプロパティから判定
public
isBooted(
)
: bool
Return values
boolinitialize()
Initialize to Application.
public
initialize(
)
: mixed
Return values
mixedregister()
Registers a service provider.
public
register(
$provider :
ServiceProviderInterface
[, $values :
array
= [] ]
)
: Application
Parameters
- $provider : ServiceProviderInterface
A ServiceProviderInterface instance
- $values : array = []
An array of values that customizes the provider
Tags
Return values
Applicationboot()
Boots all service providers.
public
boot(
)
: mixed
This method is automatically called by handle(), but you can use it to boot all service providers when not handling a request.
Tags
Return values
mixedsetParentContainer()
Set to the Symfony ContainerInterface.
public
setParentContainer(
$parentContainer :
ContainerInterface
)
: mixed
Parameters
- $parentContainer : ContainerInterface
Return values
mixedgetParentContainer()
Get ParentContainer.
public
getParentContainer(
)
: ContainerInterface