예제 #1
0
 public function onAction(Event $event)
 {
     $params = $event->getParameters();
     $params = implode(', ', $params);
     echo "exec: SampleListener::onAction({$params})";
 }
예제 #2
0
 public function onAfterLogin(Event $event)
 {
     $params = implode(', ', $event->getParameters());
     echo "executed Sample2Listener::onAfterLogin({$params})";
 }
예제 #3
0
function onAfterLogin(Event $event)
{
    $params = $event->getParameters();
    $params = implode(', ', $params);
    echo 'executed after login, with params: ' . $params;
}