private function registerTransManager()
    {
        $this->singleton(Contracts\TransManager::class, function (Application $app) {
            /**
             * @var  \Illuminate\Filesystem\Filesystem        $files
             * @var  \Illuminate\Contracts\Config\Repository  $config
             */
            $files  = $app['files'];
            $config = $app['config'];

            return new TransManager($files, array_map('realpath', [
                'app'    => $app->langPath(),
                'vendor' => $config->get('laravel-lang.vendor', ''),
            ]));
        });
    }
private function registerTransManager()
    {
        $this->singleton(Contracts\TransManager::class, function (Application $app) {
            /**
             * @var  \Illuminate\Filesystem\Filesystem        $files
             * @var  \Illuminate\Contracts\Config\Repository  $config
             */
            $files  = $app['files'];
            $config = $app['config'];

            return new TransManager($files, array_map('realpath', [
                'app'    => $app->langPath(),
                'vendor' => $config->get('laravel-lang.vendor', ''),
            ]));
        });
    }
private function registerTransManager ( ) { $ this -> singleton ( Contracts \ TransManager :: class , function ( Application $ app ) { /**
             * @var  \Illuminate\Filesystem\Filesystem        $files
             * @var  \Illuminate\Contracts\Config\Repository  $config
             */ $ files = $ app [ 'files' ] ; $ config = $ app [ 'config' ] ; return new TransManager ( $ files , array_map ( 'realpath' , [ 'app' => $ app -> langPath ( ) , 'vendor' => $ config -> get ( 'laravel-lang.vendor' , '' ) , ] ) ) ; } ) ; }
Register the trans manager.
Register the trans manager .