Skip to content

Commit

Permalink
Fixed misconfiguration of Laravel 4
Browse files Browse the repository at this point in the history
  • Loading branch information
MarkRedeman committed Apr 16, 2015
1 parent c422eff commit 98cd2b1
Show file tree
Hide file tree
Showing 5 changed files with 17 additions and 8 deletions.
4 changes: 2 additions & 2 deletions src/Adapters/EventDispatcherLaravel4.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@ class EventDispatcherLaravel4 extends EventDispatcherAdapter
{
/**
* Forward all methods to the Laravel Events Dispatcher
* @param Symfony\Component\EventDispatcher\EventDispatcherInterface $symfonyDispatcher
* @param Illuminate\Events\Dispatcher $laravelDispatcher
* @param LaravelDispatcher $laravelDispatcher
* @param SymfonyDispatcher $symfonyDispatcher
*/
public function __construct(LaravelDispatcher $laravelDispatcher, SymfonyDispatcher $symfonyDispatcher)
{
Expand Down
4 changes: 2 additions & 2 deletions src/Adapters/EventDispatcherLaravel5.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@ class EventDispatcherLaravel5 extends EventDispatcherAdapter
{
/**
* Forward all methods to the Laravel Events Dispatcher
* @param Symfony\Component\EventDispatcher\EventDispatcherInterface $symfonyDispatcher
* @param Illuminate\Contracts\Events\Dispatcher $laravelDispatcher
* @param LaravelDispatcher $laravelDispatcher
* @param SymfonyDispatcher $symfonyDispatcher
*/
public function __construct(LaravelDispatcher $laravelDispatcher, SymfonyDispatcher $symfonyDispatcher)
{
Expand Down
2 changes: 0 additions & 2 deletions src/TmdbServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,8 @@
namespace Tmdb\Laravel;

use Illuminate\Support\ServiceProvider;

use Tmdb\Laravel\TmdbServiceProviderLaravel4;
use Tmdb\Laravel\TmdbServiceProviderLaravel5;

use Tmdb\ApiToken;
use Tmdb\Client;

Expand Down
9 changes: 7 additions & 2 deletions src/TmdbServiceProviderLaravel4.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ class TmdbServiceProviderLaravel4 extends ServiceProvider {
*/
public function boot()
{
$this->package('wtfzdotnet/tmdb-package', null, __DIR__);
$this->package('php-tmdb/laravel', 'tmdb', __DIR__);
}

/**
Expand All @@ -30,8 +30,13 @@ public function register()
$this->app->bind('Tmdb\Laravel\Adapters\EventDispatcherAdapter', 'Tmdb\Laravel\Adapters\EventDispatcherLaravel4');
}

/**
* Get the TMDB configuration from the config repository
*
* @return array
*/
public function config()
{
return $this->app['config']->get('tmdb-package::tmdb');
return $this->app['config']->get('tmdb::tmdb');
}
}
6 changes: 6 additions & 0 deletions src/TmdbServiceProviderLaravel5.php
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,11 @@ public function register()
$this->app->bind('Tmdb\Laravel\Adapters\EventDispatcherAdapter', 'Tmdb\Laravel\Adapters\EventDispatcherLaravel5');
}

/**
* Get the TMDB configuration from the config repository
*
* @return array
*/
public function config()
{
return $this->app['config']->get('tmdb');
Expand All @@ -52,6 +57,7 @@ private function setupConfiguration()

/**
* Returns the default configuration path
*
* @return string
*/
private function defaultConfig()
Expand Down

0 comments on commit 98cd2b1

Please sign in to comment.