mirror of
https://github.com/joomla-extensions/patchtester.git
synced 2024-11-10 07:11:03 +00:00
3e2f50d34b
Cleanup after 4.0 bump
54 lines
1.3 KiB
PHP
54 lines
1.3 KiB
PHP
<?php
|
|
/**
|
|
* Patch testing component for the Joomla! CMS
|
|
*
|
|
* @copyright Copyright (C) 2011 - 2012 Ian MacLennan, Copyright (C) 2013 - 2018 Open Source Matters, Inc. All rights reserved.
|
|
* @license GNU General Public License version 2 or later
|
|
*/
|
|
|
|
use Joomla\CMS\Installer\Adapter\ComponentAdapter;
|
|
use Joomla\CMS\Installer\InstallerScript;
|
|
|
|
/**
|
|
* Installation class to perform additional changes during install/uninstall/update
|
|
*
|
|
* @since 2.0
|
|
*/
|
|
class Com_PatchtesterInstallerScript extends InstallerScript
|
|
{
|
|
/**
|
|
* Extension script constructor.
|
|
*
|
|
* @since 3.0.0
|
|
*/
|
|
public function __construct()
|
|
{
|
|
$this->minimumJoomla = '4.0';
|
|
$this->minimumPhp = JOOMLA_MINIMUM_PHP;
|
|
|
|
$this->deleteFiles = array(
|
|
'/administrator/components/com_patchtester/PatchTester/View/Pulls/tmpl/default_errors.php',
|
|
);
|
|
|
|
$this->deleteFolders = array(
|
|
'/administrator/components/com_patchtester/PatchTester/Table',
|
|
'/components/com_patchtester',
|
|
);
|
|
}
|
|
|
|
/**
|
|
* Function to perform changes during postflight
|
|
*
|
|
* @param string $type The action being performed
|
|
* @param ComponentAdapter $parent The class calling this method
|
|
*
|
|
* @return void
|
|
*
|
|
* @since 3.0.0
|
|
*/
|
|
public function postflight($type, $parent)
|
|
{
|
|
$this->removeFiles();
|
|
}
|
|
}
|