Futurescale, Inc. PureMVC Home

The PureMVC Framework Code at the Speed of Thought


Welcome, Guest. Please login or register.
August 23, 2017, 06:13:07 PM
Home Help Search Login Register
News: Please DM @puremvc on Twitter to gain forum access. Spambots are why we can't have nice things.
Pages: [1]
Print
Author Topic: [ FIXED ] - Error in Controller  (Read 3324 times)
hasan
Moderator
Newbie
*****
Posts: 8



View Profile WWW
« on: February 02, 2009, 03:11:50 AM »

Fixed executeCommand() to now include a conditional clause that determines the existence of the INotification to Command mapping before attempting command execution...

if (isset($this->commandMap[ $note->getName() ]))
{
   $commandClassName = $this->commandMap[ $note->getName() ];
   $commandClassReflector = new ReflectionClass( $commandClassName );
   
   $commandClassRef = $commandClassReflector->newInstance();
   $commandClassRef->execute( $note );
}

Logged

P E A C E

Hasan
Pages: [1]
Print
Jump to: