Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
P
project-covid
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
MOREAU Elise
project-covid
Commits
1fe4e223
Commit
1fe4e223
authored
4 years ago
by
Moreau Elise
Browse files
Options
Downloads
Patches
Plain Diff
remove classes
parent
8925be77
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/Application/Actions/Message/DeleteMessageAction.php
+0
-28
0 additions, 28 deletions
src/Application/Actions/Message/DeleteMessageAction.php
src/Application/Actions/Message/ListMessagesAction.php
+0
-21
0 additions, 21 deletions
src/Application/Actions/Message/ListMessagesAction.php
with
0 additions
and
49 deletions
src/Application/Actions/Message/DeleteMessageAction.php
deleted
100755 → 0
+
0
−
28
View file @
8925be77
<?php
declare
(
strict_types
=
1
);
namespace
App\Application\Actions\Message
;
use
Psr\Http\Message\ResponseInterface
as
Response
;
use
Psr\Http\Message\ServerRequestInterface
as
Request
;
use
App\Domain\Message\Message
;
class
DeleteMessageAction
extends
MessageAction
{
/**
* {@inheritdoc}
*/
protected
function
action
():
Response
{
$messageId
=
(
int
)
$this
->
resolveArg
(
'id'
);
$message
=
$this
->
messageRepository
->
find
(
$messageId
);
$this
->
em
->
remove
(
$message
);
$this
->
em
->
flush
();
$this
->
logger
->
info
(
"Message has been deleted."
);
return
$this
->
respondWithData
(
$message
);
}
}
This diff is collapsed.
Click to expand it.
src/Application/Actions/Message/ListMessagesAction.php
deleted
100755 → 0
+
0
−
21
View file @
8925be77
<?php
declare
(
strict_types
=
1
);
namespace
App\Application\Actions\Message
;
use
Psr\Http\Message\ResponseInterface
as
Response
;
class
ListMessagesAction
extends
MessageAction
{
/**
* {@inheritdoc}
*/
protected
function
action
():
Response
{
$messages
=
$this
->
messageRepository
->
findAll
();
$this
->
logger
->
info
(
"Messages list was viewed."
);
return
$this
->
twig
->
render
(
$this
->
response
,
"/user/list_messages.twig"
,
[
"messages"
=>
$messages
]);
}
}
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment