Esempio n. 1
0
 /**
  * @param DataCollectorInterface $collector
  */
 public function clear(DataCollectorInterface $collector)
 {
     $path = sprintf('%s/%s/%s', $this->path, $collector->getName(), $this->filename);
     if (file_exists($path)) {
         unlink($path);
     }
     $collector->setData(array());
 }
Esempio n. 2
0
 /**
  * @param DataCollectorInterface $collector
  */
 public function clear(DataCollectorInterface $collector)
 {
     $this->session->getBag($this->key)->remove(sprintf('%s/%s', $collector->getName(), $this->current));
     $collector->setData(array());
 }