|-------------------------------------------------------------------------- | | Now we will register a few bindings in the service container. We will | register the exception handler and the console kernel. You may add | your own bindings here if you like or you can make another file. | */ $app->singleton(Illuminate\Contracts\Debug\ExceptionHandler::class, App\Exceptions\Handler::class); $app->singleton(Illuminate\Contracts\Console\Kernel::class, App\Console\Kernel::class); $app->bind('Topor\\Topor', function ($app) { return new \Topor\Topor(['logs_dir' => storage_path('/logs'), 'best' => ['env' => \Topor\Best::ENV_PROD, 'partner_id' => 7777773, 'credentials' => [__DIR__ . '/best.key', __DIR__ . '/best.crt']]]); }); $app->bind('Geocoder\\Geocoder', function ($app) { $adapter = new \Ivory\HttpAdapter\Guzzle6HttpAdapter(); $geocoder = new \Geocoder\ProviderAggregator(3); $geocoder->registerProviders([new \Geocoder\Provider\Yandex($adapter, 'ru_RU'), new \Geocoder\Provider\GoogleMaps($adapter, 'ru_RU')]); return $geocoder; }); /* |-------------------------------------------------------------------------- | Register Middleware |-------------------------------------------------------------------------- | | Next, we will register the middleware with the application. These can | be global middleware that run before and after each request into a | route or middleware that'll be assigned to some specific routes. | */ // $app->middleware([ // // Illuminate\Cookie\Middleware\EncryptCookies::class, // // Illuminate\Cookie\Middleware\AddQueuedCookiesToResponse::class,