Expanded class hierarchy of FileLoader
abstract class FileLoader extends AbstractLoader {
protected $file;
/**
* Constructor.
*
* @param string $file The mapping file to load
*
* @throws MappingException if the mapping file does not exist
* @throws MappingException if the mapping file is not readable
*/
public function __construct($file) {
if (!is_file($file)) {
throw new MappingException(sprintf('The mapping file %s does not exist', $file));
}
if (!is_readable($file)) {
throw new MappingException(sprintf('The mapping file %s is not readable', $file));
}
$this->file = $file;
}
}
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
AbstractLoader:: |
protected | property | Contains all known namespaces indexed by their prefix | |
AbstractLoader:: |
protected | function | Adds a namespace alias. | |
AbstractLoader:: |
protected | function | Creates a new constraint instance for the given constraint name. | |
FileLoader:: |
protected | property | ||
FileLoader:: |
public | function | Constructor. | |
LoaderInterface:: |
public | function | Load a Class Metadata. | 6 |