fromConfig method
Creates a new instance of ComponentConfig based on section from container configuration.
config
component parameters from container configuration Returns a newly created ComponentConfig
Throws ConfigException when neither component descriptor or type is found.