/**
  * {@inheritdoc}
  */
 public function register(Container $app)
 {
     $app['fs'] = function ($app) {
         return new Filesystem();
     };
     $app['files'] = function ($app) {
         return $app['fs'];
     };
     $app['finder'] = $app->factory(function () {
         return Finder::create();
     });
     $app['filesystem'] = function ($app) {
         return new FilesystemManager($app);
     };
     $app['filesystem.disk'] = function ($app) {
         $config = $app['filesystems.default'] ? $app['filesystems.default'] : $app['config']->get('filesystems.default');
         return $app['filesystem']->disk($config);
     };
     $app['filesystem.cloud'] = function ($app) {
         $config = $app['filesystems.cloud'] ? $app['filesystems.cloud'] : $app['config']->get('filesystems.cloud');
         return $app['filesystem']->disk($config);
     };
 }