You are here

public function MinifyJs::__construct in Minify JS 8.2

Create the MinifyJs Service.

Parameters

\Drupal\Core\Path\PathMatcher $pathMatcher: The path.matcher service.

\Drupal\Core\File\MimeType\MimeTypeGuesser $mimeTypeGuesser: The file.mime_type.guesser service.

\Drupal\file\FileUsage\DatabaseFileUsageBackend $fileUsage: The file.usage service.

\Drupal\Core\File\FileSystem $fileSystem: The file_system service.

File

src/MinifyJs.php, line 58

Class

MinifyJs
Minify JS Service.

Namespace

Drupal\minifyjs

Code

public function __construct(PathMatcher $pathMatcher, MimeTypeGuesser $mimeTypeGuesser, DatabaseFileUsageBackend $fileUsage, FileSystem $fileSystem) {
  $this->pathMatcher = $pathMatcher;
  $this->mimeTypeGuesser = $mimeTypeGuesser;
  $this->fileUsage = $fileUsage;
  $this->fileSystem = $fileSystem;
}