Skip to content

Instantly share code, notes, and snippets.

@alihammad-gist
Created April 11, 2014 09:34
Show Gist options
  • Save alihammad-gist/10453631 to your computer and use it in GitHub Desktop.
Save alihammad-gist/10453631 to your computer and use it in GitHub Desktop.
Magento registry dump
<?php
if (!$this->getCollection()) {
$reflectionClass = new ReflectionClass('Mage');
$reflectionProperty = $reflectionClass->getProperty('_registry');
$reflectionProperty->setAccessible(true);
var_dump($reflectionProperty->getValue(new Mage()));
die;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment