Example #1
0
 public function execute(Context &$context)
 {
     $context->put('log', 'executing error command');
     throw new Exception('failed to complete exception!<br />');
 }
Example #2
0
 public function execute(Context &$context)
 {
     $context->put('log', 'executing echo command');
     return false;
 }
 /**
  * Notifies that the specified exception has occurred.
  *
  * @param Context $context chain context.
  * @param Exception $exception the exception that occurred during the 
  * execution of the command chain.
  */
 protected function notify(Context $context, $exception)
 {
     $context->put('log', 'sending error notification');
 }
Example #4
0
 public function execute(Context &$context)
 {
     $context->put('log', 'executing stop command');
     return true;
 }