diff --git a/modules.md b/modules.md index 00d5856..0ff83a5 100644 --- a/modules.md +++ b/modules.md @@ -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: ``` [ '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. diff --git a/security_guidelines.md b/security_guidelines.md index 225f637..d4ec79d 100644 --- a/security_guidelines.md +++ b/security_guidelines.md @@ -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));