protected function getPath($file)
    {
        $path = $this->locator->locate($file);

        if (!is_readable($path)) {
            throw new InputOutputException("You don't have permissions to access configuration file $file.");
        }

        return $path;
    }
protected function getPath($file)
    {
        $path = $this->locator->locate($file);

        if (!is_readable($path)) {
            throw new InputOutputException("You don't have permissions to access configuration file $file.");
        }

        return $path;
    }
protected function getPath ( $ file ) { $ path = $ this -> locator -> locate ( $ file ) ; if ( ! is_readable ( $ path ) ) { throw new InputOutputException ( "You don't have permissions to access configuration file $file." ) ; } return $ path ; }
Get the pathof a given resource

@param mixed $file The resource

@return array|string
@throws \InvalidArgumentException                            If the file is not found
@throws \Propel\Common\Config\Exception\InputOutputException If the path isnot readable
Get the pathof a given resource