protected function onCreate($config = []) { $class = $this->getClass(); return new $class($this->param($config, 'path')); }