public function __construct(AssetConfig $config = null) { if ($config === null) { $finder = new ConfigFinder(); $config = $finder->loadAll(); } $this->config = $config; }