mirror of
https://github.com/Part-DB/Part-DB-server.git
synced 2025-07-14 20:35:08 +02:00
Use new cached treeview nodes for twig inline generator (admin pages)
This commit is contained in:
parent
ad69c32832
commit
d9b15ddbb9
20 changed files with 277 additions and 214 deletions
|
@ -23,7 +23,7 @@ namespace App\Form\Type;
|
|||
|
||||
use App\Entity\Base\StructuralDBElement;
|
||||
use App\Entity\PriceInformations\Currency;
|
||||
use App\Services\TreeBuilder;
|
||||
use App\Services\Trees\NodesListBuilder;
|
||||
use Doctrine\ORM\EntityManagerInterface;
|
||||
use Symfony\Component\Intl\Currencies;
|
||||
use Symfony\Component\OptionsResolver\Options;
|
||||
|
@ -33,7 +33,7 @@ class CurrencyEntityType extends StructuralEntityType
|
|||
{
|
||||
protected $base_currency;
|
||||
|
||||
public function __construct(EntityManagerInterface $em, TreeBuilder $builder, $base_currency)
|
||||
public function __construct(EntityManagerInterface $em, NodesListBuilder $builder, $base_currency)
|
||||
{
|
||||
parent::__construct($em, $builder);
|
||||
$this->base_currency = $base_currency;
|
||||
|
|
|
@ -24,7 +24,7 @@ namespace App\Form\Type;
|
|||
use App\Entity\Attachments\AttachmentType;
|
||||
use App\Entity\Base\StructuralDBElement;
|
||||
use App\Repository\StructuralDBElementRepository;
|
||||
use App\Services\TreeBuilder;
|
||||
use App\Services\Trees\NodesListBuilder;
|
||||
use Doctrine\ORM\EntityManagerInterface;
|
||||
use Symfony\Component\Form\AbstractType;
|
||||
use Symfony\Component\Form\CallbackTransformer;
|
||||
|
@ -47,10 +47,10 @@ class StructuralEntityType extends AbstractType
|
|||
{
|
||||
protected $em;
|
||||
protected $options;
|
||||
/** @var TreeBuilder */
|
||||
/** @var NodesListBuilder */
|
||||
protected $builder;
|
||||
|
||||
public function __construct(EntityManagerInterface $em, TreeBuilder $builder)
|
||||
public function __construct(EntityManagerInterface $em, NodesListBuilder $builder)
|
||||
{
|
||||
$this->em = $em;
|
||||
$this->builder = $builder;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue