private function runRouteBinding(): void
    {
        // calculated depend of language
        $pathway = $this->getPathInfo();
        /** @var array $routing */
        $routing = App::$Properties->getAll('Routing');

        // try to work with static aliases
        if (Any::isArray($routing) && isset($routing['Alias'], $routing['Alias'][env_name])) {
            $pathway = $this->findStaticAliases($routing['Alias'][env_name], $pathway);
        }

        $this->setPathdata(explode('/', trim($pathway, '/')));

        // set default controller and action for undefined data
        if (!$this->action) {
            $this->action = 'Index';
        }

        // empty or contains backslashes? set to main
        if (!$this->controller || Str::contains('\\', $this->controller)) {
            $this->controller = 'Main';
        }

        // find callback injection in routing configs (calculated in App::run())
        if (Any::isArray($routing) && isset($routing['Callback'], $routing['Callback'][env_name])) {
            $this->findDynamicCallbacks($routing['Callback'][env_name], $this->controller);
        }
    }
private function runRouteBinding(): void
    {
        // calculated depend of language
        $pathway = $this->getPathInfo();
        /** @var array $routing */
        $routing = App::$Properties->getAll('Routing');

        // try to work with static aliases
        if (Any::isArray($routing) && isset($routing['Alias'], $routing['Alias'][env_name])) {
            $pathway = $this->findStaticAliases($routing['Alias'][env_name], $pathway);
        }

        $this->setPathdata(explode('/', trim($pathway, '/')));

        // set default controller and action for undefined data
        if (!$this->action) {
            $this->action = 'Index';
        }

        // empty or contains backslashes? set to main
        if (!$this->controller || Str::contains('\\', $this->controller)) {
            $this->controller = 'Main';
        }

        // find callback injection in routing configs (calculated in App::run())
        if (Any::isArray($routing) && isset($routing['Callback'], $routing['Callback'][env_name])) {
            $this->findDynamicCallbacks($routing['Callback'][env_name], $this->controller);
        }
    }
private function runRouteBinding ( ) : void { // calculated depend of language $ pathway = $ this -> getPathInfo ( ) ; /** @var array $routing */ $ routing = App :: $ Properties -> getAll ( 'Routing' ) ; // try to work with static aliases if ( Any :: isArray ( $ routing ) && isset ( $ routing [ 'Alias' ] , $ routing [ 'Alias' ] [ env_name ] ) ) { $ pathway = $ this -> findStaticAliases ( $ routing [ 'Alias' ] [ env_name ] , $ pathway ) ; } $ this -> setPathdata ( explode ( '/' , trim ( $ pathway , '/' ) ) ) ; // set default controller and action for undefined data if ( ! $ this -> action ) { $ this -> action = 'Index' ; } // empty or contains backslashes? set to main if ( ! $ this -> controller || Str :: contains ( '\\' , $ this -> controller ) ) { $ this -> controller = 'Main' ; } // find callback injection in routing configs (calculated in App::run()) if ( Any :: isArray ( $ routing ) && isset ( $ routing [ 'Callback' ] , $ routing [ 'Callback' ] [ env_name ] ) ) { $ this -> findDynamicCallbacks ( $ routing [ 'Callback' ] [ env_name ] , $ this -> controller ) ; } }
Build static and dynamic path aliases for working set
@return void
Build static and dynamic path aliases for working set