Exemple #1
0
 /**
  * {@inheritdoc}
  */
 public function getType($cache = true)
 {
     if (!$cache) {
         $this->type = null;
     }
     if (!$this->type) {
         $this->type = $this->filesystem->getType($this->path);
     }
     return $this->type;
 }
Exemple #2
0
 /**
  * {@inheritdoc}
  */
 public function getType()
 {
     return $this->filesystem->getType($this->path);
 }