Esempio n. 1
0
 /**
  * Get filesystem adapter by key
  *
  * @param string $key
  *
  * @return \League\Flysystem\FilesystemInterface
  */
 protected function getFilesystem(PropertyMapping $mapping)
 {
     return $this->mountManager->getFilesystem($mapping->getUploadDestination());
 }
Esempio n. 2
0
 /**
  * @expectedException InvalidArgumentException
  * @dataProvider getInvalidDomains
  */
 public function testSetUsingAnInvalidDomain($name)
 {
     $map = new FilesystemMap();
     $map->set($name, $this->getFilesystemMock());
 }