mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-08-30 19:43:49 +00:00
apply rector rules: symfony **UP TO** 44
This commit is contained in:
@@ -30,7 +30,7 @@ use Symfony\Component\EventDispatcher\Event;
|
||||
* The keys are read-only: if you try to update the context using array access
|
||||
* (example, using `$event['context_key'] = $bar;`, an error will be thrown.
|
||||
*/
|
||||
class DelegatedBlockRenderingEvent extends Event implements ArrayAccess
|
||||
class DelegatedBlockRenderingEvent extends \Symfony\Contracts\EventDispatcher\Event implements ArrayAccess
|
||||
{
|
||||
/**
|
||||
* The returned content of the event.
|
||||
|
@@ -128,7 +128,7 @@ class WidgetRenderingTwig extends AbstractExtension
|
||||
// for old rendering events (deprecated)
|
||||
$event = new DelegatedBlockRenderingEvent($context);
|
||||
|
||||
$this->eventDispatcher->dispatch('chill_block.' . $block, $event);
|
||||
$this->eventDispatcher->dispatch($event, 'chill_block.' . $block);
|
||||
|
||||
return $content . ' ' . $event->getContent();
|
||||
}
|
||||
|
Reference in New Issue
Block a user