TwistPHP Documentation

uninstaller

File path: dist/twist/Core/Models/Package.model.php
Namespace: Twist\Core\Models
Extends:

uninstallerFind the installed package by its slug and run the uninstall.php file within the package folder.

Parameters

Name Type Description
$strUninstallSlugstringn/a

Return Values

void — No return information has been documented for this function.

Example

<?php
//Set the variables for the example
$strUninstallSlug 'foo';

//Call the function uninstaller with the example vars
$resPackage = new \Twist\Core\Models\Package();
$resPackage -> uninstaller($strUninstallSlug);