mirror of
https://github.com/flarum/core.git
synced 2025-10-19 10:46:06 +02:00
pleasing the angry god Circle
This commit is contained in:
@@ -1,5 +1,14 @@
|
||||
<?php
|
||||
|
||||
/*
|
||||
* This file is part of Flarum.
|
||||
*
|
||||
* (c) Toby Zerner <toby.zerner@gmail.com>
|
||||
*
|
||||
* For the full copyright and license information, please view the LICENSE
|
||||
* file that was distributed with this source code.
|
||||
*/
|
||||
|
||||
namespace Flarum\Bus;
|
||||
|
||||
use Illuminate\Bus\Dispatcher as BaseDispatcher;
|
||||
@@ -8,7 +17,7 @@ class Dispatcher extends BaseDispatcher
|
||||
{
|
||||
public function getCommandHandler($command)
|
||||
{
|
||||
$handler = get_class($command) . 'Handler';
|
||||
$handler = get_class($command).'Handler';
|
||||
|
||||
if (class_exists($handler)) {
|
||||
return $this->container->make($handler);
|
||||
|
Reference in New Issue
Block a user