Skip to content

Commit afe0a29

Browse files
committed
Refactoring model and add JWT module
1 parent 0adc455 commit afe0a29

22 files changed

+1367
-65
lines changed

CHANGELOG.md

+6-18
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,13 @@
11
# Changelog
22

3-
All notable changes to this project will be documented in this file, in reverse chronological order by release.
3+
Status de alterações do modelo Laminas
44

5-
## 1.0.0 - TBD
5+
## 0.1.0
66

7-
### Added
7+
### Adicionado entidades
88

9-
- Nothing.
9+
- Ok.
1010

11-
### Changed
11+
### Adicionado modelo Restfull
1212

13-
- Nothing.
14-
15-
### Deprecated
16-
17-
- Nothing.
18-
19-
### Removed
20-
21-
- Nothing.
22-
23-
### Fixed
24-
25-
- Nothing.
13+
- Ok.

composer.json

+3-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,9 @@
1616
"laminas/laminas-development-mode": "^3.2",
1717
"laminas/laminas-mvc": "^3.1",
1818
"doctrine/doctrine-module": "^2.1.9",
19-
"doctrine/doctrine-orm-module": "^2.1"
19+
"doctrine/doctrine-orm-module": "^2.1",
20+
"firebase/php-jwt": "^5.0",
21+
"cocur/slugify": "^4.0"
2022
},
2123
"autoload": {
2224
"psr-4": {

composer.lock

+118-2
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

config/autoload/global.php

+18
Original file line numberDiff line numberDiff line change
@@ -30,4 +30,22 @@
3030
],
3131
],
3232
],
33+
'ApiRequest' => [
34+
'responseFormat' => [
35+
'statusKey' => 'status',
36+
'statusOkText' => 'OK',
37+
'statusNokText' => 'NOK',
38+
'resultKey' => 'result',
39+
'messageKey' => 'message',
40+
'defaultMessageText' => 'Empty response!',
41+
'errorKey' => 'error',
42+
'defaultErrorText' => 'Unknown request!',
43+
'authenticationRequireText' => 'Authentication Required.',
44+
'pageNotFoundKey' => 'Request Not Found.'
45+
],
46+
'jwtAuth' => [
47+
'cypherKey' => 'R1a#2%dY2fX@3g8r5&s4Kf6*sd(5dHs!5gD4s',
48+
'tokenAlgorithm' => 'HS256'
49+
],
50+
]
3351
];

0 commit comments

Comments
 (0)