abstract class FileLoader

Hierarchy

Expanded class hierarchy of FileLoader

1 string reference to 'FileLoader'
CrossCheckTest::testCrossCheck in drupal/core/vendor/symfony/dependency-injection/Symfony/Component/DependencyInjection/Tests/CrossCheckTest.php
@dataProvider crossCheckLoadersDumpers

File

drupal/core/vendor/symfony/validator/Symfony/Component/Validator/Mapping/Loader/FileLoader.php, line 16

Namespace

Symfony\Component\Validator\Mapping\Loader
View source
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;
  }

}

Members

Namesort descending Modifiers Type Description Overrides
AbstractLoader::$namespaces protected property Contains all known namespaces indexed by their prefix
AbstractLoader::addNamespaceAlias protected function Adds a namespace alias.
AbstractLoader::newConstraint protected function Creates a new constraint instance for the given constraint name.
FileLoader::$file protected property
FileLoader::__construct public function Constructor.
LoaderInterface::loadClassMetadata public function Load a Class Metadata. 6