Skip to content

Commit

Permalink
Remove unneeded class instantiations
Browse files Browse the repository at this point in the history
  • Loading branch information
lat9 committed Jul 17, 2024
1 parent 7457e47 commit 2cf515e
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
2 changes: 1 addition & 1 deletion admin/includes/application_bootstrap.php
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,7 @@

$pluginManager = new PluginManager(new PluginControl, new PluginControlVersion);
$installedPlugins = $pluginManager->getInstalledPlugins();
$pluginManager = new PluginManager(new App\Models\PluginControl, new App\Models\PluginControlVersion);

$pageLoader = PageLoader::getInstance();
$pageLoader->init($installedPlugins, $PHP_SELF, new FileSystem);

Expand Down
1 change: 0 additions & 1 deletion includes/application_top.php
Original file line number Diff line number Diff line change
Expand Up @@ -211,7 +211,6 @@

$pluginManager = new PluginManager(new PluginControl(), new \App\Models\PluginControlVersion());
$installedPlugins = $pluginManager->getInstalledPlugins();
$pluginManager = new PluginManager(new PluginControl, new App\Models\PluginControlVersion);

$fs = new FileSystem;
$fs->loadFilesFromPluginsDirectory($installedPlugins, 'catalog/includes/extra_configures', '~^[^\._].*\.php$~i');
Expand Down

0 comments on commit 2cf515e

Please sign in to comment.