public function setConfig(AssetConfig $config) { $this->config = $config; $this->factory = new Factory($config); }