Exemplo n.º 1
0
 /**
  * {@inheritDoc}
  */
 public function load(ObjectManager $manager)
 {
     $super_admin = new User();
     $super_admin->setUsername('*****@*****.**');
     $super_admin->setEmail('*****@*****.**');
     $super_admin->setPlainPassword('awdasd');
     $super_admin->addRole('ROLE_SUPER_ADMIN');
     $super_admin->setEnabled(true);
     $manager->persist($super_admin);
     $manager->flush();
 }