Permalink
Browse files

Merge branch 'develop'

  • Loading branch information...
2 parents 3d9086d + 7bccd49 commit 304184cb421f28b838163515aa6af95dec1552f0 Bradley Cornford committed Jan 27, 2017
Showing with 7 additions and 7 deletions.
  1. +7 −7 src/Cornford/Googlmapper/MapperServiceProvider.php
@@ -40,13 +40,13 @@ public function register()
$configPath = __DIR__ . '/../../config/config.php';
$this->mergeConfigFrom($configPath, 'googlmapper');
- $this->app['mapper'] = $this->app->share(function($app)
- {
- return new Mapper(
- $this->app->view,
- $app['config']->get('googlmapper')
- );
- });
+ $this->app->singleton(
+ 'mapper',
+ function($app)
+ {
+ return new Mapper($this->app->view, $app['config']->get('googlmapper'));
+ }
+ );
}
/**

0 comments on commit 304184c

Please sign in to comment.