This commit is contained in:
Dennis Eichhorn 2016-04-22 15:21:36 +02:00
parent 5cd30bfd62
commit 8cbb812c54
2 changed files with 5 additions and 4 deletions

View File

@ -59,11 +59,12 @@ namespace Modules\Navigation\Admin;
use phpOMS\DataStorage\Database\DatabaseType;
use phpOMS\DataStorage\Database\Pool;
use phpOMS\Module\InfoManager;
use phpOMS\Module\InstallerAbstract;
class Installer extends InstallerAbstract
{
public static function install(Pool $dbPool, array $info)
public static function install(Pool $dbPool, InfoManager $info)
{
parent::install($dbPool, $info);
@ -142,9 +143,9 @@ The content of the language file is straight forward:
```
<?php
$MODLANG['{UniqueModuleName}'] = [
$return [ '{UniqueModuleName}' => [
'StringID' => 'Your localized string',
];
]];
```
All other language files are optional and usually are only required by other modules. The navigation module for example requires an extra language file for the navigation elements. This however should be specified in the modules you want to make use of.

View File

@ -20,7 +20,7 @@ Example usage in a module handling a API request:
```
if($request->getData('CSRF') === null) {
$response->setStatusCode(403);
$response->setStatusCode(RequestStatus::R_403);
/* optional */
$response->set($request->__toString(), new Notify('Unknown referrer!', NotifyType::INFO));