Skip to content

Commit 1403daf

Browse files
turegjorupclaude
andcommitted
fix: restore Encore-based asset wiring, drop stranded AssetMapper calls
The AssetMapper migration moved to PR #81 but the dashboard and base template still referenced AssetMapper, causing every admin smoke test to 500 with "AssetMapper component is not installed". - DashboardController::configureAssets() goes back to addCssFile('css/admin.css') - base.html.twig drops the {{ importmap('app') }} block Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
1 parent 7c773f2 commit 1403daf

2 files changed

Lines changed: 1 addition & 2 deletions

File tree

src/Controller/Admin/DashboardController.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,6 @@ public function configureCrud(): Crud
8181
#[\Override]
8282
public function configureAssets(): Assets
8383
{
84-
return parent::configureAssets()->addAssetMapperEntry('app');
84+
return Assets::new()->addCssFile('css/admin.css');
8585
}
8686
}

templates/base.html.twig

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@
1010
{% endblock %}
1111

1212
{% block javascripts %}
13-
{% block importmap %}{{ importmap('app') }}{% endblock %}
1413
{{ encore_entry_script_tags('app') }}
1514
{% endblock %}
1615
</head>

0 commit comments

Comments
 (0)