Skip to content
This repository has been archived by the owner on Aug 24, 2022. It is now read-only.

Commit

Permalink
Merge #31
Browse files Browse the repository at this point in the history
  • Loading branch information
jelovac committed Jul 1, 2017
2 parents 372faad + 667ec0a commit 9d4c713
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 6 deletions.
2 changes: 0 additions & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
language: php

php:
- 5.4
- 5.5
- 5.6
- 7.0
- 7.1
Expand Down
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"description": "Provides a Laravel package to communicate with Bit.ly API",
"license": "MIT",
"require": {
"php": ">=5.4",
"php": ">=5.6",
"illuminate/support": "~4|~5",
"guzzlehttp/guzzle": "~5|~6"
},
Expand Down
2 changes: 1 addition & 1 deletion src/Jelovac/Bitly4laravel/Laravel4ServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ public function boot()
*/
public function register()
{
$this->app['bitly4laravel'] = $this->app->share(function($app) {
$this->app['bitly4laravel'] = $this->app->share(function($app) {
$config = $app['config']->get('bitly4laravel::config');
return new Bitly4laravel($config);
});
Expand Down
4 changes: 2 additions & 2 deletions src/Jelovac/Bitly4laravel/Laravel5ServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,8 @@ public function boot()
*/
public function register()
{
$this->app['bitly4laravel'] = $this->app->share(function($app) {
$config = $app['config']->get('bitly4laravel');
$this->app->singleton(Bitly4laravel::class, function($app) {
$config = $app['config']['bitly4laravel'];
return new Bitly4laravel($config);
});
}
Expand Down

0 comments on commit 9d4c713

Please sign in to comment.