mirror of
https://github.com/Part-DB/Part-DB-server.git
synced 2026-03-09 16:59:03 +01:00
Finished builtin footprints viewer tool.
This commit is contained in:
@@ -90,12 +90,14 @@ class ToolsController extends AbstractController
|
||||
}
|
||||
|
||||
/**
|
||||
* @Route("/builtin_footprints")
|
||||
* @Route("/builtin_footprints", name="tools_builtin_footprints_viewer")
|
||||
* @param AttachmentPathResolver $pathResolver
|
||||
* @return Response
|
||||
*/
|
||||
public function builtInFootprintsViewer(BuiltinAttachmentsFinder $builtinAttachmentsFinder, AttachmentURLGenerator $urlGenerator, ): Response
|
||||
{
|
||||
$this->denyAccessUnlessGranted('@tools.builtin_footprints_viewer');
|
||||
|
||||
$grouped_footprints = $builtinAttachmentsFinder->getListOfFootprintsGroupedByFolder();
|
||||
$grouped_footprints = array_map(function($group) use ($urlGenerator) {
|
||||
return array_map(function($placeholder_filepath) use ($urlGenerator) {
|
||||
|
||||
Reference in New Issue
Block a user