Exemplo n.º 1
0
 public function load(ObjectManager $manager)
 {
     $config = new VideoRecorderConfiguration();
     $config->setMaxRecordingTime(120);
     $manager->persist($config);
     $manager->flush();
 }
 public function updateConfiguration(VideoRecorderConfiguration $config, $postData)
 {
     $om = $this->container->get('claroline.persistence.object_manager');
     $config->setMaxRecordingTime($postData['max_recording_time']);
     $om->persist($config);
     $om->flush();
 }