/** * @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()); }
/** * @param DataCollectorInterface $collector */ public function clear(DataCollectorInterface $collector) { $this->session->getBag($this->key)->remove(sprintf('%s/%s', $collector->getName(), $this->current)); $collector->setData(array()); }