* * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace Rapsys\TreeBundle\Fixture; use Doctrine\Bundle\FixturesBundle\Fixture; use Doctrine\Persistence\ObjectManager; use Rapsys\TreeBundle\RapsysTreeBundle; use Symfony\Component\DependencyInjection\ContainerInterface; /** * {@inheritdoc} */ class TreeFixture extends Fixture { /** * Config array */ protected array $config; /** * Air fixtures constructor */ public function __construct(protected ContainerInterface $container) { //Retrieve config $this->config = $container->getParameter(RapsysTreeBundle::getAlias()); } /** * {@inheritDoc} */ public function load(ObjectManager $manager) { //Flush to get the ids $manager->flush(); } }