protected static function buildRegistry($type, $rm) { $config = ['repository-manager' => $rm, 'asset-options' => []]; $rm->setRepositoryClass($type, static::$classes[$type]); return $rm->createRepository($type, $config); }