protected function registerBrowscap()
    {
        if (!config('nodes.project.browsecap', false)) {
            return;
        }

        $this->app->singleton(Browscap::class, function ($app) {
            $cacheDir = storage_path('framework/browscap4');
            $fileCache = new \Doctrine\Common\Cache\FilesystemCache($cacheDir);
            $cache = new \Roave\DoctrineSimpleCache\SimpleCacheAdapter($fileCache);
            $logger = new \Monolog\Logger('logger');


            $browscap = new \BrowscapPHP\Browscap($cache, $logger);

            $updater = new \BrowscapPHP\BrowscapUpdater($cache, $logger);
            $updater->update(\BrowscapPHP\Helper\IniLoader::PHP_INI);


            return $browscap;
        });
    }