Skip to content

Commit

Permalink
Move getDeletablePlugins to ContentCleanerController.php
Browse files Browse the repository at this point in the history
- #11
- thanks @creecros
  • Loading branch information
aljawaid committed May 1, 2023
1 parent 59691c1 commit ac273a5
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 8 deletions.
10 changes: 10 additions & 0 deletions Controller/ContentCleanerController.php
Original file line number Diff line number Diff line change
Expand Up @@ -31,4 +31,14 @@ public function show()
'db_version' => $this->db->getDriver()->getDatabaseVersion(),
)));
}

public function getDeletablePlugins()
{
// GET THE JSON OF PLUGINS WHICH CAN BE DELETED
// 'template/cleaning-jobs/plugin-cleaning.json'

$file = PLUGINS_DIR . '/ContentCleaner/Template/cleaning-jobs/plugin-cleaning.json';
$plugins = json_decode(file_get_contents($file), true);
return $plugins;
}
}
8 changes: 0 additions & 8 deletions Controller/PluginCleaningController.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,13 +14,5 @@

class PluginCleaningController extends BaseController
{
public function getDeletablePlugins()
{
// GET THE JSON OF PLUGINS WHICH CAN BE DELETED
// 'template/cleaning-jobs/plugin-cleaning.json'

$file = PLUGINS_DIR . '/ContentCleaner/Template/cleaning-jobs/plugin-cleaning.json';
$plugins = json_decode(file_get_contents($file), true);
return $plugins;
}
}

0 comments on commit ac273a5

Please sign in to comment.