protected function registerCommands()
{
$app = $this->app;
$app['command.geonames.install'] = $app->share(function ($app) {
return new Commands\InstallCommand();
});
$app['command.geonames.import'] = $app->share(function ($app) {
$config = config('geonames.import', array());
return new Commands\ImportCommand(new Importer($app['geonames.repository']), $app['files'], $config);
});
$app['command.geonames.seed'] = $app->share(function ($app) {
return new Commands\SeedCommand($app['db']);
});
$app['command.geonames.truncate'] = $app->share(function ($app) {
return new Commands\TruncateCommand($app['geonames.repository']);
});
$this->commands('command.geonames.install', 'command.geonames.import', 'command.geonames.seed', 'command.geonames.truncate');
}