private function registerLocaleNegotiator()
    {
        $this->bind(NegotiatorContract::class, function ($app) {
            /** @var  \Arcanedev\Localization\Contracts\LocalesManager  $manager */
            $manager = $app[LocalesManagerContract::class];

            return new Negotiator(
                $manager->getDefaultLocale(),
                $manager->getSupportedLocales()
            );
        });
    }
private function registerLocaleNegotiator()
    {
        $this->bind(NegotiatorContract::class, function ($app) {
            /** @var  \Arcanedev\Localization\Contracts\LocalesManager  $manager */
            $manager = $app[LocalesManagerContract::class];

            return new Negotiator(
                $manager->getDefaultLocale(),
                $manager->getSupportedLocales()
            );
        });
    }
private function registerLocaleNegotiator ( ) { $ this -> bind ( NegotiatorContract :: class , function ( $ app ) { /** @var  \Arcanedev\Localization\Contracts\LocalesManager  $manager */ $ manager = $ app [ LocalesManagerContract :: class ] ; return new Negotiator ( $ manager -> getDefaultLocale ( ) , $ manager -> getSupportedLocales ( ) ) ; } ) ; }
Register LocaleNegotiator utility.
Register LocaleNegotiator utility .