Skip to content

Commit

Permalink
Beautify the file
Browse files Browse the repository at this point in the history
  • Loading branch information
visto9259 committed Sep 5, 2024
1 parent 0b1b6dc commit 917891c
Showing 1 changed file with 11 additions and 14 deletions.
25 changes: 11 additions & 14 deletions src/ConfigProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,28 +9,25 @@
use Lmc\Admin\Options\ModuleOptions;
use Lmc\Admin\Options\ModuleOptionsFactory;

/**
* Class ConfigProvider.
*/
class ConfigProvider
{
public function __invoke(): array
{
return [
'dependencies' => $this->getDependencyConfig(),
'view_manager' => $this->getViewManagerConfig(),
'lmc_admin' => $this->getModuleConfig(),
'controllers' => $this->getControllerConfig(),
'router' => $this->getRouterConfig(),
'lmc_admin' => $this->getModuleConfig(),
'controllers' => $this->getControllerConfig(),
'router' => $this->getRouterConfig(),
];
}

public function getDependencyConfig(): array
{
return [
'factories' => [
'admin_navigation' => Navigation\Service\AdminNavigationFactory::class,
ModuleOptions::class => ModuleOptionsFactory::class,
'admin_navigation' => Navigation\Service\AdminNavigationFactory::class,
ModuleOptions::class => ModuleOptionsFactory::class,
LayoutTemplateSelectListener::class => LayoutTemplateSelectListenerFactory::class,
],
];
Expand All @@ -42,9 +39,9 @@ public function getViewManagerConfig(): array
'template_path_stack' => [
__DIR__ . '/../view',
],
'template_map' => [
'template_map' => [
'lmc-admin/admin/index' => __DIR__ . '/../view/lmc/admin/index.phtml',
'layout/lmcadmin' => __DIR__ . '/../view/lmc/layout/admin.phtml',
'layout/lmcadmin' => __DIR__ . '/../view/lmc/layout/admin.phtml',
],
];
}
Expand Down Expand Up @@ -82,12 +79,12 @@ public function getRouterConfig(): array
return [
'routes' => [
'lmcadmin' => [
'type' => 'literal',
'type' => 'literal',
'options' => [
'route' => '/admin',
'route' => '/admin',
'defaults' => [
'controller' => Controller\AdminController::class,
'action' => 'index',
'action' => 'index',
],
],
'may_terminate' => true,
Expand Down

0 comments on commit 917891c

Please sign in to comment.