File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -58,7 +58,7 @@ public function insert(PagerInterface $pager, array $options = array())
5858 $ objectPersister = $ this ->registry ->getPersister ($ options ['indexName ' ], $ options ['typeName ' ]);
5959
6060 $ event = new PrePersistEvent ($ pager , $ objectPersister , $ options );
61- $ this ->dispatcher ->dispatch (Events::PRE_PERSIST , $ event );
61+ $ this ->dispatcher ->dispatch ($ event , Events::PRE_PERSIST );
6262 $ pager = $ event ->getPager ();
6363 $ options = $ event ->getOptions ();
6464
@@ -122,7 +122,7 @@ public function insert(PagerInterface $pager, array $options = array())
122122 $ errorMessage ,
123123 $ data ['options ' ]
124124 );
125- $ this ->dispatcher ->dispatch (Events::POST_ASYNC_INSERT_OBJECTS , $ event );
125+ $ this ->dispatcher ->dispatch ($ event , Events::POST_ASYNC_INSERT_OBJECTS );
126126 }
127127
128128 if (microtime (true ) > $ limitTime ) {
@@ -131,6 +131,6 @@ public function insert(PagerInterface $pager, array $options = array())
131131 }
132132
133133 $ event = new PostPersistEvent ($ pager , $ objectPersister , $ options );
134- $ this ->dispatcher ->dispatch (Events::POST_PERSIST , $ event );
134+ $ this ->dispatcher ->dispatch ($ event , Events::POST_PERSIST );
135135 }
136136}
Original file line number Diff line number Diff line change 66 "license" : " MIT" ,
77 "require" : {
88 "php" : " ^7.1" ,
9- "symfony/framework-bundle" : " ^3.4|^ 4.0|^5.0" ,
9+ "symfony/framework-bundle" : " ^4.0|^5.0" ,
1010 "friendsofsymfony/elastica-bundle" : " ^5.0" ,
1111 "enqueue/enqueue-bundle" : " ^0.10"
1212 },
You can’t perform that action at this time.
0 commit comments