Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 6 additions & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,12 @@
"preferred-install": {
"*": "dist"
},
"sort-packages": true
"sort-packages": true,
"allow-plugins": {
"composer/package-versions-deprecated": true,
"symfony/flex": true,
"symfony/runtime": true
}
},
"autoload": {
"psr-4": {
Expand Down
2 changes: 1 addition & 1 deletion src/Controller/Admin/BlogController.php
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
* purposes. However, in your real Symfony application you should use any of the
* existing bundles that let you generate ready-to-use backends without effort.
*
* See http://knpbundles.com/keyword/admin
* See https://symfony.com/bundles/EasyAdminBundle/current/index.html
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I've replaced this link by https://symfony.com/bundle There are several admin bundles, so it's not fair to link specifically to one of them 👍

*
* @author Ryan Weaver <[email protected]>
* @author Javier Eguiluz <[email protected]>
Expand Down
7 changes: 7 additions & 0 deletions src/Controller/BlogController.php
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,13 @@ public function postShow(Post $post): Response
// have enabled the DebugBundle. Uncomment the following line to see it in action:
//
// dump($post, $this->getUser(), new \DateTime());
//
// The result will be displayed either in the Symfony Profiler or in the stream output.
// See https://symfony.com/doc/current/profiler.html
// See https://symfony.com/doc/current/templates.html#the-dump-twig-utilities
//
// You can also leverage Symfony's 'dd()' function that dump and
// stop the execution

return $this->render('blog/post_show.html.twig', ['post' => $post]);
}
Expand Down
2 changes: 1 addition & 1 deletion src/Security/PostVoter.php
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ class PostVoter extends Voter
*/
protected function supports(string $attribute, $subject): bool
{
// this voter is only executed for three specific permissions on Post objects
// this voter is only executed on Post objects and for three specific permissions
return $subject instanceof Post && \in_array($attribute, [self::SHOW, self::EDIT, self::DELETE], true);
}

Expand Down
1 change: 1 addition & 0 deletions src/Utils/Validator.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
/**
* This class is used to provide an example of integrating simple classes as
* services into a Symfony application.
* See https://symfony.com/doc/current/service_container.html#creating-configuring-services-in-the-container
*
* @author Javier Eguiluz <[email protected]>
*/
Expand Down