You are here

protected function Oauth2GrantManager::fileSystem in Simple OAuth (OAuth2) & OpenID Connect 5.x

Lazy loads the file system.

Return value

\Drupal\Core\File\FileSystemInterface The file system service.

File

src/Plugin/Oauth2GrantManager.php, line 204

Class

Oauth2GrantManager
Provides the OAuth2 Grant plugin manager.

Namespace

Drupal\simple_oauth\Plugin

Code

protected function fileSystem() : FileSystemInterface {
  if (!isset($this->fileSystem)) {
    $this->fileSystem = \Drupal::service('file_system');
  }
  return $this->fileSystem;
}