You are here

public function TinyPng::__construct in TinyPNG 8

TinyPng service constructor.

Parameters

\Drupal\Core\Config\ConfigFactoryInterface $config_factory: Config factory.

\Drupal\Core\File\FileSystemInterface $file_system: File system.

File

src/TinyPng.php, line 64

Class

TinyPng
Class TinyPng.

Namespace

Drupal\tinypng

Code

public function __construct(ConfigFactoryInterface $config_factory, FileSystemInterface $file_system) {
  $this->configFactory = $config_factory;
  $this->config = $this->configFactory
    ->get('tinypng.settings');
  $this->fileSystem = $file_system;
}