mirror of
https://github.com/php-flasher/php-flasher.git
synced 2026-03-31 15:07:47 +01:00
fix: append dispatches and not override them
This commit is contained in:
@@ -241,10 +241,10 @@ final class FlasherServiceProvider extends ServiceProvider
|
||||
'name' => $component->getName(),
|
||||
);
|
||||
|
||||
$context->addEffect('dispatches', array(array(
|
||||
'name' => 'flasher:render',
|
||||
'params' => $data,
|
||||
)));
|
||||
$dispatches = isset($context->effects['dispatches']) ? $context->effects['dispatches'] : [];
|
||||
$dispatches[] = array('name' => 'flasher:render', 'params' => $data);
|
||||
|
||||
$context->addEffect('dispatches', $dispatches);
|
||||
}
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user