StoreCore data is shared through the service locator design pattern. The centralized registry is the only link between applications and controllers.

At any given time there should be only one single instance of the registry. The StoreCore registry is therefore implemented using the singleton design pattern. Because the registry implements a SingletonInterface, it cannot be instantiated. Instead you should call the static getInstance() method.


$registry = new \StoreCore\Registry();


$registry = \StoreCore\Registry::getInstance();