Get the corresponding physical file path for a class or namespace name.
public static path ( string $class, array $options = [] ) : string | ||
$class | string | The class name to locate the physical file for. If `$options['dirs']` is set to `true`, `$class` may also be a namespace name, in which case the corresponding directory will be located. |
$options | array | Options for converting `$class` to a physical path: - `'dirs'`: Defaults to `false`. If `true`, will attempt to case-sensitively look up directories in addition to files (in which case `$class` is assumed to actually be a namespace). |
return | string | Returns the absolute path to the file containing `$class`, or `null` if the file cannot be found. |