mirror of
https://github.com/Part-DB/Part-DB-server.git
synced 2025-06-21 01:25:55 +02:00
Finished builtin footprints viewer tool.
This commit is contained in:
parent
f84d1f8a8f
commit
04b660d777
7 changed files with 39 additions and 10 deletions
|
@ -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) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue