Skip to content

Inconsistent ways of accessing the registry #890

Closed
@SchumacherFM

Description

@SchumacherFM

During some review I've found three different ways of reading and writing to the registry:

$this->_registry->register(self::REGISTRY_KEY_CURRENT_INTEGRATION, $integrationData);
$this->_coreRegistry->register('current_widget_instance', $widgetInstance);
$this->_objectManager->get('Magento\Framework\Registry')->register('current_category', $category);

Which one is the official way?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions