Exemplo n.º 1
0
 public function setup()
 {
     $fs = new Filesystem();
     $fs->mount(__DIR__ . '/fs/a', '/doc/');
     $fs->mount(__DIR__ . '/fs/b', '/doc/');
     $this->fs = $fs;
 }
Exemplo n.º 2
0
Arquivo: App.php Projeto: ddliu/airdoc
 public function __construct($configs = array())
 {
     $this->configs = array_merge($this->getDefaults(), $configs);
     $fs = new Filesystem();
     if (is_array($this->configs['mount'])) {
         foreach ($this->configs['mount'] as $src => $target) {
             $fs->mount($src, $target);
         }
     }
     $this->fs = $fs;
 }