public function registerCommands(){

        foreach($this->commands as $name => $class){

            $dotName = str_replace(':', '.', $name);

            $this->app['command.'.$dotName] = $this->app->share(function() use ($class)
            {
                $commandClassName = $class;
                return new $commandClassName();
            });

            $this->commands('command.'.$dotName);
        }
    }