1 <?php 
declare(strict_types
=1); 
   4  * This file is part of the Rapsys TreeBundle package. 
   6  * (c) Raphaël Gertz <symfony@rapsys.eu> 
   8  * For the full copyright and license information, please view the LICENSE 
   9  * file that was distributed with this source code. 
  12 namespace Rapsys\TreeBundle\Fixture
; 
  14 use Doctrine\Bundle\FixturesBundle\Fixture
; 
  15 use Doctrine\Persistence\ObjectManager
; 
  17 use Rapsys\TreeBundle\RapsysTreeBundle
; 
  19 use Symfony\Component\DependencyInjection\ContainerInterface
; 
  24 class TreeFixture 
extends Fixture 
{ 
  28         protected array $config; 
  31          * Air fixtures constructor 
  33         public function __construct(protected ContainerInterface 
$container) { 
  35                 $this->config 
= $container->getParameter(RapsysTreeBundle
::getAlias()); 
  41         public function load(ObjectManager 
$manager) { 
  42                 //Flush to get the ids