private function isInternalRoute($filepath)
    {
        foreach ($this->internalRouteDirPattern as $pattern) {
            if (preg_match($pattern, $filepath)) {
                return true;
            }
        }

        $filename = basename($filepath);
        foreach ($this->internalRouteFilePattern as $pattern) {
            if (preg_match($pattern, $filename)) {
                return true;
            }
        }

        return false;
    }
private function isInternalRoute($filepath)
    {
        foreach ($this->internalRouteDirPattern as $pattern) {
            if (preg_match($pattern, $filepath)) {
                return true;
            }
        }

        $filename = basename($filepath);
        foreach ($this->internalRouteFilePattern as $pattern) {
            if (preg_match($pattern, $filename)) {
                return true;
            }
        }

        return false;
    }
private function isInternalRoute ( $ filepath ) { foreach ( $ this -> internalRouteDirPattern as $ pattern ) { if ( preg_match ( $ pattern , $ filepath ) ) { return true ; } } $ filename = basename ( $ filepath ) ; foreach ( $ this -> internalRouteFilePattern as $ pattern ) { if ( preg_match ( $ pattern , $ filename ) ) { return true ; } } return false ; }
Check if a filename is to be marked as an internal route..

@param string $filepath as the basepath (routepart) to the file.

@return boolean true if the route content is internal, else false
Check if a filename is to be marked as an internal route ..