private function findRoute(string $path, array $listFolder)
    {
        foreach ($listFolder as $lib) {
            foreach ($lib as $this->lib => $item) {
                if (file_exists(PATH_HOME . "{$item}/{$path}.php")) {
                    $url = explode('/', $path);
                    $this->file = array_pop($url);
                    return "{$item}/{$path}.php";
                }
            }
        }

        return null;
    }
private function findRoute(string $path, array $listFolder)
    {
        foreach ($listFolder as $lib) {
            foreach ($lib as $this->lib => $item) {
                if (file_exists(PATH_HOME . "{$item}/{$path}.php")) {
                    $url = explode('/', $path);
                    $this->file = array_pop($url);
                    return "{$item}/{$path}.php";
                }
            }
        }

        return null;
    }
private function findRoute ( string $ path , array $ listFolder ) { foreach ( $ listFolder as $ lib ) { foreach ( $ lib as $ this -> lib => $ item ) { if ( file_exists ( PATH_HOME . "{$item}/{$path}.php" ) ) { $ url = explode ( '/' , $ path ) ; $ this -> file = array_pop ( $ url ) ; return "{$item}/{$path}.php" ; } } } return null ; }
Busca por rota

@param string $path
@param array $listFolder
@return null|string
Busca por rota