Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

create singleton only when module is enabled #25

Closed
wants to merge 2 commits into from

Conversation

bragento
Copy link
Contributor

@bragento bragento commented Nov 3, 2014

Magento has a bug, where an exception is thrown, when you try to load a non existant singleton for the 2nd time.

The first time, the registry key is created with the value false.

The 2nd time, it will try to create the key again (because the condition is only if (!self::registry($registryKey)), but should be checking if the key is set) and raise an Exception.

@danslo
Copy link
Owner

danslo commented Nov 6, 2014

Should be merged. Thanks for this!

@danslo danslo closed this Nov 6, 2014
@bragento
Copy link
Contributor Author

thanks! could you tag a new release please?

We may not checkout the master branch on Production Systems ;)

@danslo
Copy link
Owner

danslo commented Nov 10, 2014

Good point, 1.1.1 tagged!

@davidverholen
Copy link

thanks :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants