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

Commit

Permalink
Moved and modified service providers
Browse files Browse the repository at this point in the history
  • Loading branch information
jelovac committed Feb 17, 2015
1 parent 32dcedb commit 3f08c39
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 6 deletions.
2 changes: 1 addition & 1 deletion src/Jelovac/Bitly4laravel/Bitly4laravelServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ private function getProvider()
$app = $this->app;
$version = intval($app::VERSION);
$provider = sprintf(
'\Jelovac\Bitly4laravel\ServiceProviders\Laravel%dServiceProvider', $version
'\Jelovac\Bitly4laravel\Laravel%dServiceProvider', $version
);
return new $provider($app);
}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
<?php namespace Jelovac\Bitly4laravel\ServiceProviders;
<?php namespace Jelovac\Bitly4laravel;

use Illuminate\Support\ServiceProvider;
use Jelovac\Bitly4laravel\Bitly4laravel;

class Laravel4ServiceProvider extends ServiceProvider {

Expand All @@ -23,7 +22,7 @@ public function boot()
public function register()
{
$this->app['bitly4laravel'] = $this->app->share(function($app) {
$config = $app['config']->get('bitly4laravel::config');
$config = $app['config']->get('bitly4laravel::bitly4laravel');
return new Bitly4laravel($config);
});
}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
<?php namespace Jelovac\Bitly4laravel\ServiceProviders;
<?php namespace Jelovac\Bitly4laravel;

use Illuminate\Support\ServiceProvider;
use Jelovac\Bitly4laravel\Bitly4laravel;

class Laravel5ServiceProvider extends ServiceProvider {

Expand Down

0 comments on commit 3f08c39

Please sign in to comment.