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

Use-case: caching module's configuration #392

Merged
merged 1 commit into from
Apr 7, 2015
Merged

Use-case: caching module's configuration #392

merged 1 commit into from
Apr 7, 2015

Conversation

pensiero
Copy link
Contributor

Avoid troubles in case of caching module's configuration

Avoid troubles in case of caching module's configuration
gianarb pushed a commit that referenced this pull request Apr 7, 2015
Use-case: caching module's configuration
@gianarb gianarb merged commit 9d40913 into doctrine:master Apr 7, 2015
@gianarb
Copy link
Contributor

gianarb commented Apr 7, 2015

Thanks for this improvement!

@pensiero
Copy link
Contributor Author

pensiero commented Apr 7, 2015

👍

// module.config.php
'service_manager' => array(
'factories' => array(
'my_memcached_alias' => __NAMESPACE__ . '\Cache\MemcachedFactory'
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Config files usually do not have namespaces. Can you replace __NAMESPACE__ with YourModule?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ah nvm, I did not saw that it was already merged :D

@gianarb gianarb mentioned this pull request Apr 24, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants