Conversation
|
Thanks! I'll review as soon as I have some free time |
|
This looks good. Great feature. I see that you have created a separate yaml for MongoDB and the orm. That's great! What is the purpose of the new setting class? May I suggest to use the same setting class and then move the orm/MongoDB configuration away from the annotation and in to a separate yaml? I do also think it is a good idea to refactor the settingsManager into one BaseSettingManager and one manager for each db. |
|
Hi Nyholm, |
|
May I suggest that you do create an interface for the setting. (And maybe an abstract class?)
Now you have the |
|
Ok i'll do updates asap :) |
|
Hey @qliam |
|
Hi @Nyholm , Bye |
| ->scalarNode('db_driver') | ||
| ->validate() | ||
| ->ifNotInArray($supportedDrivers) | ||
| ->thenInvalid('The driver %s is not supported. Please choose one of '.json_encode($supportedDrivers)) |
There was a problem hiding this comment.
This could be implode instead of json_encode I think? Rest of the code looks quite okay, but I've got no MongoDB experience to validate this.
Modification to support MongoDB database.