private function composeFileName($name)
    {
        if (is_null($name)) {
            return $name;
        }

        $ext = $this->determineExtension();
        $withExtension = $this->createName($name, $ext);

        list($found, $fileName) = $this->searchFor($name, $withExtension);

        return $found ? $fileName : $name;
    }
private function composeFileName($name)
    {
        if (is_null($name)) {
            return $name;
        }

        $ext = $this->determineExtension();
        $withExtension = $this->createName($name, $ext);

        list($found, $fileName) = $this->searchFor($name, $withExtension);

        return $found ? $fileName : $name;
    }
private function composeFileName ( $ name ) { if ( is_null ( $ name ) ) { return $ name ; } $ ext = $ this -> determineExtension ( ) ; $ withExtension = $ this -> createName ( $ name , $ ext ) ; list ( $ found , $ fileName ) = $ this -> searchFor ( $ name , $ withExtension ) ; return $ found ? $ fileName : $ name ; }
Compose the filename with existing paths and return when match

If no match is found the $name is returned as is;
If no extension is given it will add it from driver class map;
By default it will try to find <$name>.php file

@param  string $name

@return string
Compose the filename with existing paths and return when match