Run Pabana Framework

Start by call user defined routes, then resolve routage
After start bootstrap and launch mvc by calling controller

@since   1.0
@return  void
427305
public function run()
    {
        // Load routing user config file
        $this->routes();
        // Launch routage
        Router::resolve();
        // Load databases user config file
        $this->databases();
        // Load Bootstrap
        $this->bootstrap();
        // Launch Controller defined by routage
        $bodyContent = $this->controller();
        // Show body content return by Controller
        echo $bodyContent;
    }
522123
public function run()
    {
        // choosing which controller action must be executed
        $sAction = $this->_chooseCurrentAction();

        // executing action which returns name of template to render
        /** @var Controller $oController */
        $oController = $this->getInstance("Controller");

        $view = $oController->getView();
        $view->sendHeaders();

        try {
            $oController->$sAction();
        } catch (SetupControllerExitException $exception) {
        } finally {
            $view->display();
        }
    }
775791
public function runApplication()
    {
        $routeCollection = $this->createRouteCollection();
        $dispatcher = $routeCollection->getDispatcher();

        $request = $this->createRequest();
        $response = $dispatcher->dispatch($request->getMethod(), $request->getPathInfo());
        $response->send();
    }
704735
public function bootstrap()
    {
        $this->_startErrorHandler();

        $routesFile = "routes.php";
        $bootstrap = "bootstrap.php";

        $router = $this->getRouter();

        $event = new Bootstrap([
            'router' => $router,
            'application' => $this
        ]);
        $this->getEventManager()
            ->trigger(Bootstrap::BEFORE_BOOTSTRAP, $this, $event);

        Template::addPath(
            getcwd() .'/'. $this->getConfiguration()
                ->get('paths.views', 'Views')
        );

        Template::appendPath(__DIR__ . '/Views');

        foreach (Configuration::getPathList() as $path) {
            if (is_file("{$path}/{$bootstrap}")) {
                include("{$path}/{$bootstrap}");
            }

            if (is_file("{$path}/{$routesFile}")) {
                include("{$path}/{$routesFile}");
            }
        }
        $this->getEventManager()
            ->trigger(Bootstrap::AFTER_BOOTSTRAP, $this, $event);
    }
1047688
public static function startup()
    {
        global $PPHP;

        trigger('language', self::$_req['lang']);

        if (isset(self::$_PATH[1]) && listeners('route/' . self::$_PATH[0] . '+' . self::$_PATH[1])) {
            self::$_base = array_shift(self::$_PATH) . '+' . array_shift(self::$_PATH);
        } elseif (isset(self::$_PATH[0])) {
            if (listeners('route/' . self::$_PATH[0])) {
                self::$_base = array_shift(self::$_PATH);
            } else {
                trigger('http_status', 404);
            };
        } elseif (listeners('route/main')) {
            self::$_base = 'main';
        } else {
            trigger('http_status', 404);
        };
        self::$_req['path_args'] = self::$_PATH;
    }
1097059
public function boot()
    {
        if (!$this->app->routesAreCached()) {
            require realpath(__DIR__.'/../Http/web.php');
        }

        $this->loadTranslationsFrom(realpath(__DIR__.'/../../resources/lang'), 'wechat');

        $this->loadViewsFrom(realpath(__DIR__.'/../../resources/views'), 'wechat');

//        $this->publishes([realpath(__DIR__.'/../../resources/views') => base_path('resources/views/vendor/guo/file')], 'views');

        $this->publishes([realpath(__DIR__.'/../../resources/assets') => public_path('assets')], 'admin-wechat');

        $this->publishes([realpath(__DIR__.'/../../resources/config') => config_path('')], 'admin-wechat');
        $this->publishes([realpath(__DIR__.'/../../user') => base_path('app')], 'admin-wechat');

        $this->publishes([realpath(__DIR__.'/../../database/migrations') => database_path('migrations')], 'admin-wechat');

        $this->publishes([realpath(__DIR__.'/../../database/seeds') => database_path('seeds')], 'admin-wechat');
    }
266106
public function boot()
    {
        $root = '/../..';

        $path_to_views = $root . '/resources/views/settings';

        $this->loadRoutesFrom(__DIR__ . $root . '/routes/web.php');
        $this->loadViewsFrom(__DIR__ . $path_to_views, 'settings');
        $this->loadMigrationsFrom(__DIR__ . $root . '/database/migrations');

        $this->publishes([
            __DIR__ . $path_to_views => resource_path('views/vendor/settings'),
            __DIR__ . $root . '/config/settings.php' => config_path('settings.php'),
        ]);
    }
939735
private function route() : void
    {
        // Parse route
        $parsed = $this->parseRoute();

        // Run error controller when no route matched
        if (!$parsed && isset($this->error_controller)) {
            call_user_func($this->error_controller);
        }
    }
978383
public final function run()
    {
        $this->route();
        $this->parseApplicationMethod();

        $this->application = new Application($this);

        $this->logger->logRequest($this->application);

        $this->application->run();

        $contentType = new ContentType($this->getDataTransfer(), $this->headerAccept);

        (new Presenter($this->responseFormatter, $contentType))->render();

        $this->logger->logResponse($this->application, $this->profiler);
    }
1273747
public function boot()
    {

        /*
         * Routes
         */
        $this->loadRoutesFrom(__DIR__ . '/../Http/routes.php');


        /*
         * Views
         */
        $this->loadViewsFrom(__DIR__ . '/../../resources/views', 'emailverification');
        $this->publishes([
            __DIR__ . '/../../resources/views' => resource_path('views/vendor/emailverification'),
        ], 'views');


        /*
         * Migrations
         */
        $this->loadMigrationsFrom(__DIR__ . '/../../database/migrations');
        $this->publishes([
            __DIR__ . '/../../database/migrations' => database_path('migrations')
        ], 'migrations');


        /*
         * Translations
         */
        $this->loadTranslationsFrom(__DIR__ . '/../../resources/lang', 'emailverification');
        $this->publishes([
            __DIR__ . '/../../resources/lang' => resource_path('lang/vendor/emailverification'),
        ], 'translations');

        /*
         * Config
         */
        $this->publishes([
            __DIR__ . '/../../config/emailverification.php' => config_path('emailverification.php'),
        ]);

    }
1311161
public function boot()
    {
        if (! $this->app->routesAreCached()) {
            require __DIR__.'/Routes/routes.php';
        }

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

        $this->publishes([
            __DIR__.'/../database/migrations/' => database_path('migrations')
        ], 'migrations');

        $this->publishes([
            __DIR__.'/../config/laravel-modules-base.php'   => config_path('laravel-modules-base.php')
        ], 'config');

        $this->loadViewsFrom(__DIR__.'/../resources/views', 'laravel-modules-base');
        $this->publishes([
            __DIR__.'/../resources/views' => base_path('resources/views/vendor/laravel-modules-base'),
        ]);
    }
208653
public function run() {
		// Setup our default error route responders
		$this->setup_error_routes();

		// To always be RESTful, create a last-hit route responder to respond in our designated format ALWAYS
		Router::route( function( $request, $response, $service, $matches ) {
			// ALWAYS respond with our formatting function
			Router::app()->api_respond();
		});

		// Finally, call "dispatch" to have our App's Router route the request appropriately
		Router::dispatch(
			substr(
				$_SERVER['REQUEST_URI'],
				strlen( rtrim( $this->config['app-meta']['base_url'], '/' ) ) // Remove a potential trailing slash
			)
		);
	}
1250528
public function run()
    {
        $resolvedRequest = $this->router->route($this->request);
        echo $this->dispatcher->dispatch($resolvedRequest);
    }
936313
public function boot()
	{

		// ------------------------------------------------------------------------------------------------
		// variables

			$root           = realpath(__DIR__ . '/../') . '/';
			$views          = $root . 'package/views';
            $config         = app(SketchpadConfig::class);


        // ------------------------------------------------------------------------------------------------
		// views

			$this->loadViewsFrom($views, 'sketchpad');
            $this->loadViewsFrom(base_path($config->views), 'sketchpad');
			view()->composer('*', function ($view) use ($config) {
				$view->with('route', $config->route);
			});


        // ------------------------------------------------------------------------------------------------
		// routes

			$parameters =
			[
				'namespace'     => 'davestewart\sketchpad\controllers',
				'middleware'    => $this->middleware,
			];

			Route::group($parameters, function ($router) use ($config)
			{
				require (__DIR__ . '/routes.php');
			});

	}
376640
public function boot()
    {
        if ($this->app->runningInConsole()) {
            $this->publishes([
                __DIR__.'/../config/config.php' => config_path('ibrand/sms.php'),
            ]);

            $this->loadMigrationsFrom(__DIR__.'/../migrations');
        }

        if (!$this->app->routesAreCached()) {
            $routeAttr = config('ibrand.sms.route', []);

            Route::group(array_merge(['namespace' => $this->namespace], $routeAttr), function ($router) {
                require __DIR__.'/route.php';
            });
        }
    }
354112
public function boot()
    {
        if ($this->app->runningInConsole()) {
            $this->publishes([
                __DIR__.'/../config/ohdear-webhooks.php' => config_path('ohdear-webhooks.php'),
            ], 'config');
        }

        Route::macro('ohDearWebhooks', function ($url) {
            return Route::post($url, '\OhDear\LaravelWebhooks\OhDearWebhooksController');
        });
    }
167300
private function runView(): void
    {
        $action = ($this->routeAction) ? $this->routeAction : 'index';

        \call_user_func([$this->view, $action]);
    }