mirror of
https://github.com/doctrine/orm.git
synced 2026-03-23 22:42:18 +01:00
Parameterize redis server IP #6101
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @mayconfsbrito on GitHub (Nov 9, 2018).
My php server has the redis extension loaded, but my redis server instance are in another server. So, when I run my app is displayed the RedisException below:
Fatal error: Uncaught exception 'RedisException' with message 'Connection refused' in /var/www/middlewares/vendor/doctrine/orm/lib/Doctrine/ORM/Tools/Setup.php:200Below the code regarding this exception:
So, basically it was good if the redis server IP was parameterized in Doctrine config options.
@Ocramius commented on GitHub (Nov 10, 2018):
Sorry, incorrectly moved this issue. I think the entire
Doctrine\ORM\Tools\Setupis kinda foobar'd. Probably a better idea to leave this to PSR-11 providers like https://github.com/DASPRiD/container-interop-doctrine, in future.Thoughts, @doctrine/doctrinecore?
@Ocramius commented on GitHub (Nov 10, 2018):
I'm excluding this upfront. The
if (extension_loaded('redis')) {block should rather disappear, but the setup utilities are in place to aid in getting started there, they are surely not meant to be highly configurable.@Majkl578 commented on GitHub (Nov 10, 2018):
As discussed with @lcobucci some time ago, we should either drop the Setup class altogether in 3.0 or at least drop the magic around caching configuration - it makes a lot of naive assumptions, especially when creating the cache instance.
@Majkl578 commented on GitHub (Nov 11, 2018):
https://github.com/doctrine/doctrine2/pull/6777#discussion_r159183945
https://github.com/doctrine/doctrine2/pull/6905#pullrequestreview-84359484