Launch maintenance view.

@return null
350058
public static function launch()
    {
        if (static::check()) {
            clean();

            $view = config('maintenance.view');
            $view = str_replace('.', '/', $view).'.php';

            // $view = '../app/views/'.$view;
            $view = '../resources/views/'.$view;
            // d($view);:
            if (!file_exists($view)) {
                throw new \Exception('The view \''.config('maintenance.view').'\' not found');
            }

            include $view;

            out('');
        }
    }
1111156
public function boot()
    {
        /*Load views*/
        $this->loadViewsFrom(__DIR__ . '/../../resources/views', 'webed-core');
        /*Load translations*/
        $this->loadTranslationsFrom(__DIR__ . '/../../resources/lang', 'webed-core');

        $this->publishes([
            __DIR__ . '/../../resources/views' => config('view.paths')[0] . '/vendor/webed-core',
        ], 'views');
        $this->publishes([
            __DIR__ . '/../../resources/lang' => base_path('resources/lang/vendor/webed-core'),
        ], 'lang');
        $this->publishes([
            __DIR__ . '/../../config' => base_path('config'),
        ], 'config');
        $this->publishes([
            __DIR__ . '/../../resources/assets' => resource_path('assets'),
        ], 'webed-assets');
        $this->publishes([
            __DIR__ . '/../../resources/root' => base_path(),
            __DIR__ . '/../../resources/public' => public_path(),
        ], 'webed-public-assets');
    }
1197878
public function run() {
        if (!Config::config()['user']['debug']['maintenance']) {
            if ($this->_route == false) {
                $this->response->status(404);
                $this->addError('routing failed : http://' . $this->request->env('HTTP_HOST') . $this->request->env('REQUEST_URI'), __FILE__, __LINE__, ERROR_WARNING);
            }
            else {
                $this->_controller();
            }

            $this->response->run();
            $this->addErrorHr(LOG_ERROR);
            $this->addErrorHr(LOG_SYSTEM);
            $this->_setHistory('');

            if (Config::config()['user']['output']['minify'] && preg_match('#text/html#isU', $this->response->contentType())) {
                $this->response->page($this->_minifyHtml($this->response->page()));
            }

            if (Config::config()['user']['debug']['environment'] == 'development' && Config::config()['user']['debug']['profiler']) {
                $this->profiler->profiler($this->request, $this->response);
            }
        }
        else {
            $this->response->page($this->maintenance());
        }

        echo $this->response->page();
    }
792414
public static function start() {
    	$controller = (self::$route->module).'Controller';
    	$view = (self::$route->module).'View';
    	$model = (self::$route->module).'Model';
        $action = (self::$route->action).'Action';

        $module_root = MODULES_ROOT.'/'.self::$route->module;

        switch (true) {
			case (file_exists($module_root) &&
				 file_exists($module_root."/$model.php") &&
				 file_exists($module_root."/$view.php") &&
				 file_exists($module_root."/$controller.php")):
				$namespace = self::$route->module;

				if (class_exists("Module\\$namespace\\$controller")) {
					$app_controller = "Module\\$namespace\\$controller";
					$AppController = new $app_controller();
				} else {
					throw MvcException::UndefinedModule(self::$route->module);
				}

				if (method_exists($AppController, $action)) { $content = $AppController->$action(); } else {
					throw MvcException::UndefinedMethodInController($action, get_class($AppController));
				}
				break;

			default: throw MvcException::UndefinedModule(self::$route->module); break;
		}

        self::setContent($content);
    }
669226
public function run(): void
    {
        //attach Oserver to Subjetc
        $this->model->attach($this->view);

        //run action before controller
        $this->beforeAfterController('before');
        $this->beforeAfterControllerAction('before');

        //run controller
        $this->runController();

        //run action after controller
        $this->beforeAfterControllerAction('after');
        $this->beforeAfterController('after');

        //notify model changes to view
        $this->model->notify();

        //run view
        $this->runView();
    }
167300
private function runView(): void
    {
        $action = ($this->routeAction) ? $this->routeAction : 'index';

        \call_user_func([$this->view, $action]);
    }
774815
public function on_start()
    {
        parent::on_start();

        $this->view = new View('/frontend/upgrade');
        $this->setTheme('concrete');

        $this->siteVersion = $this->app->make('config')->get('concrete.version_installed');
        $this->checkSecurity();
        Cache::disableAll();
    }
942639
public function setUpMode()
    {
        $file = $this->maintenanceFilePath();

        if (file_exists($file) && !unlink($file)) {
            $message = sprintf(
                'Something went wrong on trying to remove maintenance file %s.',
                $file
            );

            throw new Exceptions\FileException($message);
        }

        return true;
    }
914907
public function run()
    {
        $count = Admin::model('Post')->count();
        $string = trans_choice('admin.dimmer.post', $count);

        return view('admin::dimmer', array_merge($this->config, [
            'icon'   => 'admin-news',
            'title'  => "{$count} {$string}",
            'text'   => __('admin.dimmer.post_text', ['count' => $count, 'string' => Str::lower($string)]),
            'button' => [
                'text' => __('admin.dimmer.post_link_text'),
                'link' => route('admin.posts.index'),
            ],
            'image' => admin_asset('images/widget-backgrounds/02.jpg'),
        ]));
    }
1076501
public function showSetupView()
    {
        $this->subMenu['setup']['active'] = true;

        Session::flash('redirect_to', $this->subMenu['setup']['url']);

        return View::make('dashboard.settings.app-setup')
            ->withPageTitle(trans('dashboard.settings.app-setup.app-setup').' - '.trans('dashboard.dashboard'))
            ->withSubMenu($this->subMenu)
            ->withRawAppAbout(Config::get('setting.app_about'));
    }
1294699
public function launching()
    {
        /**
         * registering default commands
         */
        $this->with([self::PROVIDES_SERVICE], function (IBladedManager $manager) {
            $manager->registerCommandNamespace('scope', Scope::class);
            \phpQuery::newDocument();
            $manager->registerCommandNamespace('form', Form::class);
            $manager->registerCommandNamespace('template', Template::class);
        });
    }
11194
protected function bootViews()
    {
        if (isset($this->dir) and isset($this->viewDirs) and is_array($this->viewDirs)) {
            foreach ($this->viewDirs as $dirName => $namespace) {
                $viewPath             = $this->getViewsPath($dirName);
                $viewsDestinationPath = Str::replace($this->viewsDestinationPath, '{namespace}', $namespace);
                $this->loadViewsFrom($viewPath, $namespace);
                $this->publishes([ $viewPath => base_path($viewsDestinationPath) ], 'views');
            }
        }
    }
818558
private function launchClosure()
    {
        foreach ($this->resolving() as $methodName) {
            $this->getResolver()->method($this, $methodName, [], true);
        }

        $this->launching();
    }
792378
protected function loadViews()
    {
        $view_path = __DIR__.'/../resources/views';
        $this->loadViewsFrom($view_path, 'crudapi');
        $this->publishes(
            [
                $view_path => base_path('resources/views/Taskforcedev/crudapi'),
            ], 'crudapi-views'
        );
    }
124820
public function View ()
	{
		
		// If there is no view then use basic by default
		
		if (!$this->view)
		{
			$this->view		= new View\Basic;
		}
		
		// If there is no template then set default
		
		if (!$this->template)
		{
			$this->template	= $this->view->defaultTemplate ($this->module, $this->controller, $this->action);
		}

		// Assign controller reference

		$this->view->assign ('controller', $this);

		// Display view
		
		$this->view->display ($this->template);
		
	}
1190920
public function indexAction()
    {
        if ($this->util->getMaintenanceLock()->isLocked()) {
            $this->addSnippet($this->maintenanceModeSnippets);
            return;
        }

        // Make sure to return to the forward screen
        $this->currentUser->setSurveyReturn();

        $request = $this->getRequest();
        $tracker = $this->loader->getTracker();
        $form    = $tracker->getAskTokenForm(array(
            'displayOrder' => array('element', 'description', 'errors'),
            'labelWidthFactor' => 0.8
            ));

        if ($request->isPost() && $form->isValid($request->getParams())) {
            $this->_forward('forward');
            return;
        }

        $form->populate($request->getParams());
        $this->displayTokenForm($form);
    }
1161912
public function boot()
    {
        $this->loadViewsFrom(__DIR__.'/../resources/views', 'bootstrap');

        if ($this->app->runningInConsole()) {
            $this->publishes([
                __DIR__.'/../resources/views' => resource_path('views/vendor/bootstrap'),
            ], 'views');
        }
    }