forked from GNUsocial/gnu-social
[CONTROLLER] Add Controller base class, which handles rendering templates if requested HTML or json, accordingly
This commit is contained in:
@@ -118,9 +118,7 @@ abstract class Event
|
||||
*/
|
||||
public static function handle(string $name, array $args = [], string $ns = 'GNUsocial/'): bool
|
||||
{
|
||||
return !(self::$dispatcher->dispatch(
|
||||
new GenericEvent($ns . $name, $args),
|
||||
$name)->isPropagationStopped());
|
||||
return !(self::$dispatcher->dispatch(new GenericEvent($ns . $name, $args), $name)->isPropagationStopped());
|
||||
}
|
||||
|
||||
/**
|
||||
|
Reference in New Issue
Block a user