server/src/app/Providers/BusServiceProvider.php
author nowmad@23.1.168.192.in-addr.arpa
Fri, 06 Nov 2015 15:38:42 +0100
changeset 7 479b1dd5a8e3
parent 2 00e2916104fe
permissions -rw-r--r--
update .hgignore to ignore build, temp and config files in the ember app and the drupal module

<?php

namespace CorpusParole\Providers;

use Illuminate\Bus\Dispatcher;
use Illuminate\Support\ServiceProvider;

class BusServiceProvider extends ServiceProvider
{
    /**
     * Bootstrap any application services.
     *
     * @param \Illuminate\Bus\Dispatcher $dispatcher
     */
    public function boot(Dispatcher $dispatcher)
    {
        $dispatcher->mapUsing(function ($command) {
            return Dispatcher::simpleMapping(
                $command, 'CorpusParole\Commands', 'CorpusParole\Handlers\Commands'
            );
        });
    }

    /**
     * Register any application services.
     */
    public function register()
    {
        //
    }
}