Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[4.2] ExtensionManagerTrait.php. Comments cosmetic. #38275

Merged
merged 1 commit into from Jul 14, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
8 changes: 4 additions & 4 deletions libraries/src/Extension/ExtensionManagerTrait.php
Expand Up @@ -40,7 +40,7 @@ public function bootComponent($component): ComponentInterface
// Normalize the component name
$component = strtolower(str_replace('com_', '', $component));

// Path to to look for services
// Path to look for services
$path = JPATH_ADMINISTRATOR . '/components/com_' . $component;

return $this->loadExtension(ComponentInterface::class, $component, $path);
Expand All @@ -61,7 +61,7 @@ public function bootModule($module, $applicationName): ModuleInterface
// Normalize the module name
$module = strtolower(str_replace('mod_', '', $module));

// Path to to look for services
// Path to look for services
$path = JPATH_SITE . '/modules/mod_' . $module;

if ($applicationName === 'administrator') {
Expand All @@ -83,10 +83,10 @@ public function bootModule($module, $applicationName): ModuleInterface
*/
public function bootPlugin($plugin, $type): PluginInterface
{
// Normalize the module name
// Normalize the plugin name
$plugin = strtolower(str_replace('plg_', '', $plugin));

// Path to to look for services
// Path to look for services
$path = JPATH_SITE . '/plugins/' . $type . '/' . $plugin;

return $this->loadExtension(PluginInterface::class, $plugin . ':' . $type, $path);
Expand Down