Ok, first ...
$this->$config
Second $to $configbe removed, since otherwise it tries to access the variable name specified in string $config. (for example, if $ config holds "test"a value, you will receive access to the variable "test"in its class $this->test)
$config, , ? (String, , ..?)