Log message #4045164

# At Username Text
# Jun 28th 2017, 04:03 savant @tariquesani my plan after more or less rewriting CrudView this week is to read through every issue
# Jun 28th 2017, 04:01 admad Don't think there is one yet. The project was transferred just few days ago. Might be a while b4 the future plan of attack is ready.
# Jun 28th 2017, 03:53 tariquesani @savant @admad I heard that Phinx needs some help... Is there a ToDo list?
# Jun 28th 2017, 03:34 xuding :tired_face: @admad
# Jun 28th 2017, 03:06 admad @xuding you have 1 week to deliver or no more support for you in here
# Jun 28th 2017, 02:15 xuding thanks!
# Jun 28th 2017, 02:15 savant ha
# Jun 28th 2017, 02:15 xuding but you can steal my idea if I did not deliver fast enough
# Jun 28th 2017, 02:15 savant great!
# Jun 28th 2017, 02:15 xuding I am going to
# Jun 28th 2017, 02:14 savant are you going to write it or do you want me to?
# Jun 28th 2017, 02:14 savant just extend the ObjectRegistry class: https://github.com/cakephp/cakephp/blob/master/src/Core/ObjectRegistry.php
# Jun 28th 2017, 02:14 xuding I think this makes an awsome blog post!
# Jun 28th 2017, 02:14 xuding right!
# Jun 28th 2017, 02:14 savant you can return any QueueEngine from it
# Jun 28th 2017, 02:14 savant https://github.com/josegonzalez/cakephp-queuesadilla/blob/master/src/Queue/QueueEngineRegistry.php
# Jun 28th 2017, 02:14 savant I made one for Queuesadilla
# Jun 28th 2017, 02:14 xuding Yea, I think you make a valid point
# Jun 28th 2017, 02:13 savant `ServiceRegistry`
# Jun 28th 2017, 02:13 xuding “service class” :slightly_smiling_face:
# Jun 28th 2017, 02:13 savant what kind of object?
# Jun 28th 2017, 02:13 xuding just a object
# Jun 28th 2017, 02:13 savant what does `makeDeleteProductVariant()` return?
# Jun 28th 2017, 02:13 xuding yea, i understood that, just wonder how to do that using cakephp
# Jun 28th 2017, 02:13 savant for instance, here is a plugin that uses Ray.DI, by one of the core developers: https://github.com/lorenzo/piping-bag
# Jun 28th 2017, 02:12 savant we also dont stop you from using your own DIC
# Jun 28th 2017, 02:12 xuding which is serving as a service locator
# Jun 28th 2017, 02:12 xuding ``` function makeDeleteProductVariant() ```
# Jun 28th 2017, 02:12 xuding this is what I am doing in my app:
# Jun 28th 2017, 02:11 savant correct me if I’m wrong, @markstory
# Jun 28th 2017, 02:11 savant just extend ObjectRegistry and you can have your own service locator
# Jun 28th 2017, 02:11 xuding I mean service locator.
# Jun 28th 2017, 02:11 savant ComponentRegistry, HelperRegistry, LogEngineRegistry… etc.
# Jun 28th 2017, 02:11 xuding interesting!
# Jun 28th 2017, 02:11 savant You can see that in any of the ObjectRegistry classes, like TableRegistry
# Jun 28th 2017, 02:10 savant If you mean a service locator, which is a common pattern related to DIC, then we already do that
# Jun 28th 2017, 02:10 savant since you just have thing that contains a reference to everything/can make it out of thin air
# Jun 28th 2017, 02:10 savant Thats what a DIC usually ends up being used as in an application
# Jun 28th 2017, 02:09 savant Do you mean `$_GLOBALS`?
# Jun 28th 2017, 02:06 xuding why didn’t CakePHP choose to go the DIC container route?
# Jun 28th 2017, 02:06 savant ?