Skip to content

Commit 2b49d07

Browse files
committed
wip
Signed-off-by: alexmerlin <alex.merlin.1985@gmail.com>
1 parent d136bad commit 2b49d07

28 files changed

Lines changed: 1940 additions & 55 deletions

composer.json

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,7 @@
5151
"php": "~8.2.0 || ~8.3.0",
5252
"ext-gd": "*",
5353
"ext-json": "*",
54+
"doctrine/orm": "^3.2",
5455
"dotkernel/dot-cache": "^4.0",
5556
"dotkernel/dot-cli": "^3.5.0",
5657
"dotkernel/dot-data-fixtures": "^1.2.2",
@@ -78,8 +79,9 @@
7879
"mezzio/mezzio-twigrenderer": "^2.15.0",
7980
"ramsey/uuid-doctrine": "^2.1.0",
8081
"roave/psr-container-doctrine": "^5.1.0",
81-
"doctrine/orm": "^3.2",
82-
"symfony/filesystem": "^7.0.3"
82+
"swagger-api/swagger-ui": "^5.17",
83+
"symfony/filesystem": "^7.0.3",
84+
"zircote/swagger-php": "^4.10"
8385
},
8486
"require-dev": {
8587
"laminas/laminas-coding-standard": "^2.5",

config/pipeline.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@
6161
$app->pipe(ImplicitOptionsMiddleware::class);
6262
$app->pipe(MethodNotAllowedMiddleware::class);
6363

64-
$app->pipe(ContentNegotiationMiddleware::class);
64+
// $app->pipe(ContentNegotiationMiddleware::class);
6565
$app->pipe(DeprecationMiddleware::class);
6666

6767
$app->pipe(ResponseHeaderMiddleware::class);

src/Admin/src/Entity/Admin.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,7 @@ public function __construct()
5454
{
5555
parent::__construct();
5656

57+
$this->created();
5758
$this->roles = new ArrayCollection();
5859
}
5960

src/Admin/src/Entity/AdminRole.php

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,13 @@ class AdminRole extends AbstractEntity implements RoleInterface
2424
self::ROLE_SUPERUSER,
2525
];
2626

27+
public function __construct()
28+
{
29+
parent::__construct();
30+
31+
$this->created();
32+
}
33+
2734
#[ORM\Column(name: "name", type: "string", length: 30, unique: true)]
2835
protected string $name = '';
2936

0 commit comments

Comments
 (0)