function resolveCommandPath(string $groupID, string $command) {
        $paths = array();
        
        foreach($this->commandsDirectories as $dir) {
            $paths[] = $dir.'/'.\mb_strtolower($groupID);
        }
        
        $paths[] = __DIR__.'/Commands/'.\mb_strtolower($groupID);
        $filename = '/'.\mb_strtolower($command).'.php';
        
        foreach($paths as $path) {
            $file = $path.$filename;
            if(\file_exists($file)) {
                return \realpath($file);
            }
        }
        
        throw new \InvalidArgumentException('Unable to resolve command path');
    }
function resolveCommandPath(string $groupID, string $command) {
        $paths = array();
        
        foreach($this->commandsDirectories as $dir) {
            $paths[] = $dir.'/'.\mb_strtolower($groupID);
        }
        
        $paths[] = __DIR__.'/Commands/'.\mb_strtolower($groupID);
        $filename = '/'.\mb_strtolower($command).'.php';
        
        foreach($paths as $path) {
            $file = $path.$filename;
            if(\file_exists($file)) {
                return \realpath($file);
            }
        }
        
        throw new \InvalidArgumentException('Unable to resolve command path');
    }
function resolveCommandPath ( string $ groupID , string $ command ) { $ paths = array ( ) ; foreach ( $ this -> commandsDirectories as $ dir ) { $ paths [ ] = $ dir . '/' . \ mb_strtolower ( $ groupID ) ; } $ paths [ ] = __DIR__ . '/Commands/' . \ mb_strtolower ( $ groupID ) ; $ filename = '/' . \ mb_strtolower ( $ command ) . '.php' ; foreach ( $ paths as $ path ) { $ file = $ path . $ filename ; if ( \ file_exists ( $ file ) ) { return \ realpath ( $ file ) ; } } throw new \ InvalidArgumentException ( 'Unable to resolve command path' ) ; }
Resolves a given group ID and command name to the path.
@param string  $groupID
@param string  $command
@return string
@throws \InvalidArgumentException
Resolves a given group ID and command name to the path .