Introduction

The installer takes care of storing the installed/uninstalled extensions

📘

To use the installer with the provided eventDispatcher use the method installer() within the manager class, instead of directly from the installer instance

<?php 

/**
	Considering that there is a extension called "foo-plugin" within the installer storage (on this case 'path-to-file')
*/

$installer = new \Mascame\Extender\Installer\FileInstaller(
                 new \Mascame\Extender\Installer\FileWriter(),
                 'path-to-file'
             );

// install a plugin
$installer->install('foo-plugin');

// uninstall a plugin
$installer->uninstall('foo-plugin');