/**
  * {@inheritdoc}
  */
 protected function resolve($name)
 {
     $adapter = parent::resolve($name);
     if (class_exists('Twistor\\FlysystemStreamWrapper')) {
         \Twistor\FlysystemStreamWrapper::register($name, $adapter->getDriver());
     }
     return $adapter;
 }
 public function register($protocol, FilesystemInterface $fs, array $configuration = null)
 {
     return \Twistor\FlysystemStreamWrapper::register($protocol, $fs, $configuration);
 }