Closed alberto-bottarini closed 6 years ago
Hi @alberto-bottarini,
You experience this on Laravel 5? The Laravel4ServiceProvider is used for Laravel 4 and it shouldn't be taken into account on Laravel 5.
If that is the case than there is probably an issue with this method:
private function getProvider()
{
$app = $this->app;
$version = intval($app::VERSION);
$provider = sprintf('\Jelovac\Bitly4laravel\Laravel%dServiceProvider', $version);
return new $provider($app);
}
I will test it.
I'm getting same error. Any update? I'm running 5.4
Scratch that. It's been a while since I did a composer update. I see the ServiceProviders changed. I should be using Jelovac\Bitly4laravel\laravel5ServiceProvider::class
. You should prob update the README :)
FACADE is not working though...
I got this error:
Investigating, i discovered that in L4ServiceProvider, Bitly4Laravel service is registered using
bitly4laravel
as $keywhile in L5ServiceProvider it use a different $key, the complete name of the class:
Changing with
$this->app->singleton('bitly4laravel', function($app) {
, it works