vluzrmos / laravel-language-detector

Detect the language for your application using browser preferences, subdomains or route prefixes.
108 stars 25 forks source link

Incompatibility with Laravel 5.4 #17

Closed hlorofos closed 7 years ago

hlorofos commented 7 years ago

Here is the error we're getting with Laravel 5.4

Type error: Argument 1 passed to Vluzrmos\LanguageDetector\LanguageDetector::__construct() must be an instance of Symfony\Component\Translation\TranslatorInterface, instance of Illuminate\Translation\Translator given, called in vendor/vluzrmos/language-detector/src/Providers/LanguageDetectorServiceProvider.php on line 172

mbardelmeijer commented 7 years ago

PR created for Laravel 5.4 support: #18

skarampatakis commented 7 years ago

I have tried the changes you suggested manually but it seems not to be working. It gets stuck on the if statement. Any hint?