Bind all of the application paths in the container.

@return void
967476
public function bindPathsInContainer()
    {
        $this->share('path', $this->path());
        $this->share('path.base', $this->basePath());
        $this->share('path.lang', $this->langPath());
        $this->share('path.config', $this->configPath());
        $this->share('path.public', $this->publicPath());
        $this->share('path.storage', $this->storagePath());
        $this->share('path.database', $this->databasePath());
        $this->share('path.resources', $this->resourcePath());
        $this->share('path.bootstrap', $this->bootstrapPath());
    }
365843
protected function mapWebRoutes(): void
    {
        $file = $this->basePath.'routes/web.php';

        if (file_exists($file)) {
            $this->loadRoutesFrom(
                Route::middleware('web')
                ->group($file));
        }
    }
146025
public function loadConfiguration(): void
	{
		parent::loadConfiguration();

		$builder = $this->getContainerBuilder();

		$builder->addDefinition($this->prefix('application'))
			->setFactory(MiddlewareApplication::class)
			->setArguments([new Statement('@' . $this->prefix('chain') . '::create')]);
	}
199928
private function setupFolders()
    {
        $this->basePath = $this->kernelDir . '/config/bundles';
        $this->autoloadersPath = $this->basePath . '/autoloaders';
        $this->configPath = $this->basePath . '/config';
        $this->routingPath = $this->basePath . '/routing';
        $this->cachePath = $this->basePath . '/cache';

        $this->filesystem->mkdir(array(
            $this->basePath,
            $this->autoloadersPath,
            $this->configPath,
            $this->routingPath,
            $this->cachePath,));
    }
35412
protected function bindRepositories()
    {
        $this->app->singleton(RoutesService::class, function () {
            return new RoutesService();
        });

        $this->app->singleton(LanguageService::class, function () {
            return new LanguageService(
                cache()->rememberForever('languages', function () {
                    return Language::all();
                })
            );
        });

        $this->app->singleton('croppa.src_dir', function () {
            return resolve('filesystem')->disk(config('gzero.upload.disk'))->getDriver();
        });
    }
271098
protected function bindInstancesInContainer()
    {
        $this->app->instance("view-control.path", $this->path());
        $this->app->instance("view-control.path.base", $this->basePath());
    }
759870
protected function setConfigPath()
    {
        $this->configPath = $this->basePath . '/' . static::$configsSubdir; // default
        $pathList = $this->getBasePathList();
        foreach ($pathList as $path) {
            $confPath = $path . '/' . static::$configsSubdir;
            if (is_dir($confPath)) {
                $this->configPath = $confPath;
                break;
            }
        }
    }
152431
protected function setAppDirectoryNamespace()
	{
		$files = Finder::create()
                            ->in($this->laravel['path'])
                            ->name('*.php');

		foreach ($files as $file)
		{
			$this->replaceNamespace($file->getRealPath());
		}
	}
1177414
private function registerResources()
    {
        $configFilename = __DIR__ . '/../../config/arbory.php';

        $this->mergeConfigFrom( $configFilename, 'arbory' );

        $this->publishes( [
            $configFilename => config_path( 'arbory.php' )
        ], 'config' );

        $this->publishes( [
            __DIR__ . '/../../stubs/settings.stub' => config_path( 'settings.php' )
        ], 'config' );

        $this->publishes( [
            __DIR__ . '/../../stubs/admin_routes.stub' => base_path( '/routes/admin.php' )
        ], 'config' );

        $this->publishes([
            __DIR__ . '/../../resources/lang/' => base_path('resources/lang/vendor/arbory')
        ], 'lang');

        $this->loadMigrationsFrom( __DIR__ . '/../../database/migrations' );
        $this->loadViewsFrom( __DIR__ . '/../../resources/views', 'arbory' );
    }
234360
protected function registerBindings()
    {
        $this->app->bind(
            \LaravelFlare\Flare\Contracts\Permissions\Permissionable::class,
            \Flare::config('permissions')
        );
    }
634657
protected function addAppRoutes()
    {
        $routes = $this->getConfig('routes');
        if (is_array($routes)) {
            $this->getRouter()->addRoutes($routes);
        }
    }
1183651
public function Bind()
	{
		$this->getAbstractNode(0)->Bind();
		/**
		 * @var QName $qname
		 */
		$qname = $this->getQNVarName();
		$this->_varRef = $this->getContext()->RunningContext->NameBinder->PushVar( $qname );
		$this->getAbstractNode(1)->Bind();
		$this->getContext()->RunningContext->NameBinder->PopVar();
	}
890183
protected function bindSandbox()
    {
        $this->app->bind(Sandbox::class, function (App $app) {
            return new Sandbox($app);
        });

        $this->app->bind('swoole.sandbox', Sandbox::class);
    }
748286
protected function registerRouteBindings()
    {
        Routes\Admin\PagesRoutes::bindings();
        Routes\Admin\FootersRoutes::bindings();
        Routes\Admin\MetasRoutes::bindings();
        Routes\Admin\RedirectsRoutes::bindings();
    }
1317097
protected function setPaths()
    {
        $pathPackage = realpath(__DIR__.'/../../../../');
        $pathBase = realpath(base_path());

        // Set CLI path.
        $this->pathCli = $pathBase.'/vendor/bin/'.$this::CLI_TOOL;
        if (!file_exists($this->pathCli)) {
            $this->pathCli = $pathPackage.'/vendor/bin/'.$this::CLI_TOOL;
        }

        // Set ruleset paths.
        $this->pathRulesetStock = $pathPackage.'/rulesets/'.$this::CLI_TOOL.'.xml';
        $this->pathRulesetLocal = $pathBase.'/'.$this::CLI_TOOL.'.xml';
        $this->pathRulesetLocalLegacy = $pathBase.'/app/'.$this::CLI_TOOL.'.xml';

        // Set active ruleset.
        $this->pathRuleset = $this->pathRulesetStock;
        if (is_readable($this->pathRulesetLocal)) {
            $this->pathRuleset = $this->pathRulesetLocal;
        } elseif (is_readable($this->pathRulesetLocalLegacy)) {
            $this->pathRuleset = $this->pathRulesetLocalLegacy;
        }
    }
1198970
protected function _includeAppController(): void
    {
        $controller = null;
        if (file_exists(WWW_ROOT . 'js/app/app_controller.js')) {
            $controller = 'app/app_controller.js';
        } else {
            $controller = '/frontend_bridge/js/lib/app_controller.js';
        }
        $this->_dependencies[] = $controller;
    }
450608
public function boot()
    {
        parent::boot();

        if (Request::is('*/portfolio/portfolio/*')) {
            Route::bind('portfolio', function ($portfolio) {
                $portfoliorepo = $this->app->make('Litecms\Portfolio\Interfaces\PortfolioRepositoryInterface');
                return $portfoliorepo->findorNew($portfolio);
            });
        }

        if (Request::is('*/portfolio/category/*')) {
            Route::bind('category', function ($category) {
                $categoryrepo = $this->app->make('Litecms\Portfolio\Interfaces\CategoryRepositoryInterface');
                return $categoryrepo->findorNew($category);
            });
        }

    }