Yes, i can do it but if someone want to apply some operations on $configs, it is better to do it in a function then in the constructor.