Skip to content
Snippets Groups Projects

replace dashes in sfc filename with underscores

Open mrweiner requested to merge issue/sfc-3306929:3306929-allow-dashes-in into 8.x-1.x
Files
3
@@ -188,7 +188,8 @@ class SimpleComponentDeriver extends DeriverBase implements ContainerDeriverInte
continue;
}
foreach ($this->fileSystem->scanDirectory($directory . '/components/', '/^.*\.sfc/') as $file) {
$id = str_replace('.sfc', '', $file->filename);
$id_raw = str_replace('.sfc', '', $file->filename);
$id = str_replace('-', '_', $id_raw);
$this->derivatives[$id] = $base_plugin_definition;
$this->derivatives[$id]['simple_file'] = $file->uri;
$this->derivatives[$id]['alt_id'] = $id;
Loading