public static function MappingException::fileMappingDriversRequireConfiguredDirectoryPath

Parameters

string|null $path:

Return value

MappingException

4 calls to MappingException::fileMappingDriversRequireConfiguredDirectoryPath()
AnnotationDriver::getAllClassNames in drupal/core/vendor/doctrine/common/lib/Doctrine/Common/Persistence/Mapping/Driver/AnnotationDriver.php
Gets the names of all mapped classes known to this driver.
DefaultFileLocator::getAllClassNames in drupal/core/vendor/doctrine/common/lib/Doctrine/Common/Persistence/Mapping/Driver/DefaultFileLocator.php
Get all class names that are found with this file locator.
StaticPHPDriver::getAllClassNames in drupal/core/vendor/doctrine/common/lib/Doctrine/Common/Persistence/Mapping/Driver/StaticPHPDriver.php
@todo Same code exists in AnnotationDriver, should we re-use it somehow or not worry about it?
SymfonyFileLocator::getAllClassNames in drupal/core/vendor/doctrine/common/lib/Doctrine/Common/Persistence/Mapping/Driver/SymfonyFileLocator.php
Get all class names that are found with this file locator.

File

drupal/core/vendor/doctrine/common/lib/Doctrine/Common/Persistence/Mapping/MappingException.php, line 55

Class

MappingException
A MappingException indicates that something is wrong with the mapping setup.

Namespace

Doctrine\Common\Persistence\Mapping

Code

public static function fileMappingDriversRequireConfiguredDirectoryPath($path = null) {
  if (!empty($path)) {
    $path = '[' . $path . ']';
  }
  return new self('File mapping drivers must have a valid directory path, ' . 'however the given path ' . $path . ' seems to be incorrect!');
}