public function MimeMapManager::__construct in Sophron 8
Constructs a MimeMapManager object.
Parameters
\Drupal\Core\Config\ConfigFactoryInterface $config_factory: The config factory.
\Symfony\Component\EventDispatcher\EventDispatcherInterface $dispatcher: The event dispatcher.
\Drupal\Core\Extension\ModuleHandlerInterface $module_handler: The module handler service.
File
- src/
MimeMapManager.php, line 81
Class
- MimeMapManager
- Provides a sensible mapping between filename extensions and MIME types.
Namespace
Drupal\sophronCode
public function __construct(ConfigFactoryInterface $config_factory, EventDispatcherInterface $dispatcher, ModuleHandlerInterface $module_handler) {
$this->configFactory = $config_factory;
$this->sophronSettings = $this->configFactory
->get('sophron.settings');
$this->eventDispatcher = $dispatcher;
$this->moduleHandler = $module_handler;
}