Ejemplo n.º 1
0
 /**
  * Initialize the Qualitelis Datasource to the ImportBundle
  * @param ObjectManager $manager
  */
 public function load(ObjectManager $manager)
 {
     $ds = new \Bigfoot\Bundle\ImportBundle\Entity\DataSource();
     $ds->setName('qualitelis');
     $ds->setDomain('ftp.qualitelis-survey.com');
     $ds->setProtocol('ftp');
     $ds->setPort(21);
     $ds->setUsername('SEH');
     $ds->setPassword('exportseh789');
     $manager->persist($ds);
     $manager->flush();
 }
Ejemplo n.º 2
0
 /**
  * Définie les entités à créer dans la base pour le bon fonctionnement du ArtsysBundle
  * 
  * @param ObjectManager $manager
  */
 public function load(ObjectManager $manager)
 {
     $ds = new \Bigfoot\Bundle\ImportBundle\Entity\DataSource();
     $ds->setName('Artsys Connection');
     $ds->setDomain('myhotel.seh-hotels.com');
     $ds->setProtocol('https');
     $ds->setPort(443);
     $ds->setUsername('*****@*****.**');
     $ds->setPassword('7DrJhHVqR4');
     $manager->persist($ds);
     $manager->flush();
 }