Add `AcpTemplateDeletePackageInstallationPlugin`
[GitHub/WoltLab/WCF.git] / wcfsetup / install / files / lib / system / package / plugin / AcpTemplateDeletePackageInstallationPlugin.class.php
1 <?php
2
3 namespace wcf\system\package\plugin;
4
5 use wcf\data\application\Application;
6
7 /**
8 * Deletes templates installed with the `acpTemplate` package installation plugin.
9 *
10 * @author Matthias Schmidt
11 * @copyright 2001-2021 WoltLab GmbH
12 * @license GNU Lesser General Public License <http://opensource.org/licenses/lgpl-license.php>
13 * @package WoltLabSuite\Core\System\Package\Plugin
14 * @since 5.5
15 */
16 final class AcpTemplateDeletePackageInstallationPlugin extends AbstractTemplateDeletePackageInstallationPlugin
17 {
18 /**
19 * @inheritDoc
20 */
21 protected function getLogTableName(): string
22 {
23 return 'wcf1_acp_template';
24 }
25
26 /**
27 * @inheritDoc
28 */
29 protected function getFilePath(string $filename, string $application): string
30 {
31 return \sprintf(
32 '%s/acp/templates/%s.tpl',
33 Application::getDirectory($application),
34 $filename
35 );
36 }
37 }