Skip to content

Commit

Permalink
Fix IOC injection bug
Browse files Browse the repository at this point in the history
resolves SammyK#135
  • Loading branch information
linkthrow authored Oct 14, 2016
1 parent 8cef4be commit 968260f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/LaravelFacebookSdk/LaravelFacebookSdk.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
<?php namespace SammyK\LaravelFacebookSdk;

use Illuminate\Routing\UrlGenerator as Url;
use Illuminate\Contracts\Config\Repository as Config;
use Facebook\Facebook;

Expand All @@ -25,7 +26,7 @@ class LaravelFacebookSdk extends Facebook
* @param \Illuminate\Contracts\Routing\UrlGenerator|\Laravel\Lumen\Routing\UrlGenerator $url
* @param array $config
*/
public function __construct(Config $config_handler, $url, array $config)
public function __construct(Config $config_handler, Url $url, array $config=[])
{
if (!is_a($url, 'Laravel\Lumen\Routing\UrlGenerator')
&& !is_a($url, 'Illuminate\Contracts\Routing\UrlGenerator')) {
Expand Down

0 comments on commit 968260f

Please sign in to comment.