Use new cached treeview nodes for twig inline generator (admin pages)

This commit is contained in:
Jan Böhmer 2020-01-02 22:55:28 +01:00
parent ad69c32832
commit d9b15ddbb9
20 changed files with 277 additions and 214 deletions

View file

@ -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;

View file

@ -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;