public function registerCommand($notificationName, $commandClassRef) { if (!self::$shouldSuppressEcho) { echo "{$notificationName} {$commandClassRef}" . PHP_EOL; } parent::registerCommand($notificationName, $commandClassRef); }
/** * Register Command * * Register an <b>ICommand</b> with the <b>Controller</b>. * * @param string $noteName Name of the <b>INotification</b> * @param object|string $commandClassRef <b>ICommand</b> object to register. Can be an object OR a class name. * @return void */ public function registerCommand($notificationName, $commandClassRef) { if (isset($this->controller)) { $this->controller->registerCommand($notificationName, $commandClassRef); } }