1
0
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:
Daniel Klabbers
2017-11-27 11:05:15 +01:00
parent 642332ffe2
commit 4d9e2335c7
12 changed files with 19 additions and 12 deletions

View File

@@ -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);