Skip to content

Commit

Permalink
Add module basic
Browse files Browse the repository at this point in the history
  • Loading branch information
voltan committed Mar 13, 2022
1 parent db2661c commit a51d177
Show file tree
Hide file tree
Showing 4 changed files with 48 additions and 0 deletions.
25 changes: 25 additions & 0 deletions config/module.config.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
<?php

namespace System;

use Laminas\Mvc\Middleware\PipeSpec;
use Laminas\Router\Http\Literal;

return [
'service_manager' => [
'aliases' => [

],
'factories' => [

],
],

'router' => [],

'view_manager' => [
'strategies' => [
'ViewJsonStrategy',
],
],
];
Empty file added data/schema.sql
Empty file.
22 changes: 22 additions & 0 deletions src/Module.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
<?php

namespace System;

use Laminas\Mvc\MvcEvent;

class Module
{
public function getConfig(): array
{
return include __DIR__ . '/../config/module.config.php';
}

public function onBootstrap(MvcEvent $event)
{
/*
$application = $event->getApplication();
$eventManager = $application->getEventManager();
$serviceManager = $application->getServiceManager();
*/
}
}
1 change: 1 addition & 0 deletions test/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
ToDo: write test cases

0 comments on commit a51d177

Please sign in to comment.