Skip to content

Commit

Permalink
Return the service provider
Browse files Browse the repository at this point in the history
  • Loading branch information
laoneo committed Mar 9, 2018
1 parent da45dc6 commit 7e8ee80
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 8 deletions.
2 changes: 1 addition & 1 deletion libraries/src/Extension/LegacyModule.php
Expand Up @@ -14,7 +14,7 @@
use Joomla\CMS\Dispatcher\ModuleDispatcherInterface;

/**
* Access to component specific services.
* Access to module specific services.
*
* @since __DEPLOY_VERSION__
*/
Expand Down
9 changes: 2 additions & 7 deletions modules/mod_menu/services/provider.php
Expand Up @@ -15,12 +15,7 @@
use Joomla\DI\Container;
use Joomla\DI\ServiceProviderInterface;

/**
* Menu module loader.
*
* @since __DEPLOY_VERSION__
*/
class MenuModuleServiceProvider implements ServiceProviderInterface
return new class implements ServiceProviderInterface
{
/**
* Registers the service provider with a DI container.
Expand All @@ -36,4 +31,4 @@ public function register(Container $container)
$container->set(DispatcherFactoryInterface::class, new DispatcherFactory('\\Joomla\\Module\\Menu'));
$container->registerServiceProvider(new Module);
}
}
};

0 comments on commit 7e8ee80

Please sign in to comment.