8000 Updated the application to Symfony 3.3.0 by javiereguiluz · Pull Request #562 · symfony/demo · GitHub
[go: up one dir, main page]

Skip to content

Updated the application to Symfony 3.3.0 #562

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 16 commits into from
Closed
Changes from 1 commit
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
Prev Previous commit
Next Next commit
Used the event name constant
  • Loading branch information
javiereguiluz committed May 26, 2017
commit 0d82f42972d5f4edb669153410d4b6140facf6ba
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
namespace AppBundle\EventListener;

use AppBundle\Entity\Comment;
use AppBundle\Events;
use Symfony\Component\EventDispatcher\EventSubscriberInterface;
use Symfony\Component\EventDispatcher\GenericEvent;
use Symfony\Component\Routing\Generator\UrlGeneratorInterface;
Expand Down Expand Up @@ -63,7 +64,7 @@ public function __construct(\Swift_Mailer $mailer, UrlGeneratorInterface $urlGen
public static function getSubscribedEvents()
{
return [
'comment.created' => 'onCommentCreated',
Events::COMMENT_CREATED => 'onCommentCreated',
];
Copy link
Member

Choose a reason for hiding this comment

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

Do you want to use Events::COMMENT_CREATED?

}

Expand Down
0