\DewdropPimple

This class gives you access to the global Pimple instance responsible for providing core resources to the application. This is a singleton.

It is toxic. Absolutely never reference resources from Pimple without providing a clean way for developers and testers to inject alternatives.

Summary

Methods
Properties
Constants
hasResource()
getResource()
getInstance()
No public properties found
No constants found
No protected methods found
No protected properties found
N/A
__construct()
__clone()
$instance
N/A

Properties

$instance

$instance : \Pimple

The actual Pimple instance.

Type

\Pimple

Methods

hasResource()

hasResource(string  $resourceName) : boolean

Check to see if the specified resource is defined in Pimple.

Parameters

string $resourceName

Returns

boolean

getResource()

getResource(string  $resourceName) : mixed

Get a resource from the Pimple instance. Just a shortcut.

Parameters

string $resourceName

Returns

mixed

getInstance()

getInstance() : \Pimple

Get the global Pimple instance. If it isn't already available, find it.

Returns

\Pimple

__construct()

__construct() 

Go ahead. Try it. See what happens.

__clone()

__clone() 

Can you clone it? Nope. You cannot.