Registry Class

Get instance

Get the instance of the Registry class:

$registry = Registry::getInstance();

Clear instance

Clear the instance of the Registry class:

$registry->clearInstance() : void;

Init

Init the class:

$registry->init(array $registryArray) : void;

Get

Get the value from registry:

$registry->get(string $key) : ?string;

Get array

Get the array from registry:

$registry->getArray() : array;

Set

Set the value to registry:

$registry->get(string $key, string $value) : void;
Edit on GitHub