Skip to content

Commit

Permalink
Change Event::getParameter() to get() in NoUserForPrincipal listener
Browse files Browse the repository at this point in the history
  • Loading branch information
jmikola committed Dec 9, 2010
1 parent 56f4787 commit b12c318
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Listener/NoUserForPrincipal.php
Expand Up @@ -52,12 +52,12 @@ public function register(EventDispatcher $dispatcher)
*/
public function handle(Event $event)
{
if (HttpKernelInterface::MASTER_REQUEST !== $event->getParameter('request_type')) {
if (HttpKernelInterface::MASTER_REQUEST !== $event->get('request_type')) {
return;
}

if ($this->container->has('simplecas')) {
$exception = $event->getParameter('exception');
$exception = $event->get('exception');

if ($exception instanceof NoUserForPrincipalException) {
if (null !== $this->logger) {
Expand Down

0 comments on commit b12c318

Please sign in to comment.