Exemplo n.º 1
0
 /**
  * Return all data with: All configured filesystems.
  *
  * @return array
  */
 public function data()
 {
     $data = ['filesystems' => array_keys((array) Configure::read(self::CONFIGURE_KEY)), 'instances' => []];
     foreach ($data['filesystems'] as $filesystem) {
         $data['instances'][$filesystem] = FilesystemRegistry::retrieve($filesystem);
     }
     return $data;
 }
Exemplo n.º 2
0
 /**
  * Proxy to the FilesystemRegistry.
  *
  * @param string $alias Alias name requested.
  *
  * @return AdapterInterface
  */
 public function filesystem($alias)
 {
     return FilesystemRegistry::retrieve($alias);
 }