setRule('host = "example.fr"'); $rule->setConfig($this->getReference('admin-user', User::class)->getConfig()); $manager->persist($rule); $manager->flush(); } public function getDependencies() { return [ UserFixtures::class, ]; } }