Skip to content
This repository has been archived by the owner on Jan 29, 2024. It is now read-only.

Commit

Permalink
Also tell EkinoWordPressBundle if the user is logged in
Browse files Browse the repository at this point in the history
  • Loading branch information
ebernardf6 committed May 9, 2014
1 parent 344f2b9 commit 5f35c79
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion hook.php
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,8 @@ function ekino_wordpress_symfony_hook_wp_login($user_login, $user) {
function ekino_wordpress_symfony_hook_wp_login_cookie($cookie_elements, $user) {
$event = new \Ekino\WordpressBundle\Event\WordpressEvent(array(
'cookie_elements' => $cookie_elements,
'user' => $user
'user' => $user,
'is_logged' => is_user_logged_in()
));

symfony_event_dispatch('ekino.wordpress.user_login', $event);
Expand Down

0 comments on commit 5f35c79

Please sign in to comment.