Skip to content

Commit

Permalink
[8.x] Deprecate dispatch_now & dispatchNow (#36834)
Browse files Browse the repository at this point in the history
* Deprecate dispatch_now

* Deprecate dispatchNow on trait
  • Loading branch information
driesvints authored Apr 1, 2021
1 parent 97fe4a1 commit d8a53a0
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/Illuminate/Foundation/Bus/Dispatchable.php
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,8 @@ public static function dispatchSync()
* Dispatch a command to its appropriate handler in the current process.
*
* @return mixed
*
* @deprecated Will be removed in a future Laravel version.
*/
public static function dispatchNow()
{
Expand Down
2 changes: 2 additions & 0 deletions src/Illuminate/Foundation/helpers.php
Original file line number Diff line number Diff line change
Expand Up @@ -413,6 +413,8 @@ function dispatch_sync($job, $handler = null)
* @param mixed $job
* @param mixed $handler
* @return mixed
*
* @deprecated Will be removed in a future Laravel version.
*/
function dispatch_now($job, $handler = null)
{
Expand Down

0 comments on commit d8a53a0

Please sign in to comment.