ModuleInstaller
in
Module installer interface.
Tags
Table of Contents
Methods
- __construct() : mixed
- The class constructor.
- install() : mixed
- Install a module.
- uninstall() : mixed
- Uninstall a module.
- update() : mixed
- Update a module.
Methods
__construct()
The class constructor.
public
__construct(Container $Container) : mixed
Parameters
- $Container : Container
-
The DI container class.
install()
Install a module.
public
install() : mixed
This method will be call on install a module.
If your module contain some thing to work on install such as create table in database, you can use that command here.
If your module has nothing to work on install, you can create this method and leave it empty.
Any installation script here if they failed, it should throw the errors to make a notice that installation is failure.
Tags
uninstall()
Uninstall a module.
public
uninstall() : mixed
This method will be called on uninstall and it will be delete the module's files.
This method will be call on uninstall module.
If your module contain some thing to work on uninstall such as remove table in database, you can use that command here.
If your module has nothing to work on uninstall, you can create this method and leave it empty.
Any uninstallation script here if they failed, it should throw the errors to make a notice that uninstallation is failure.
Tags
update()
Update a module.
public
update() : mixed
This method will be call on update a module.
If your module contain something to work on update such as migration, update the database, you can use that command here.
If your module has nothing to work on update, you can create this method and leave it empty.
Any update script here if they failed, it should throw the errors to make a notice that update is failure.