You are here

public static function MappingException::fileMappingDriversRequireConfiguredDirectoryPath in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 vendor/doctrine/common/lib/Doctrine/Common/Persistence/Mapping/MappingException.php \Doctrine\Common\Persistence\Mapping\MappingException::fileMappingDriversRequireConfiguredDirectoryPath()

Parameters

string|null $path:

Return value

self

4 calls to MappingException::fileMappingDriversRequireConfiguredDirectoryPath()
AnnotationDriver::getAllClassNames in 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 vendor/doctrine/common/lib/Doctrine/Common/Persistence/Mapping/Driver/DefaultFileLocator.php
Gets all class names that are found with this file locator.
StaticPHPDriver::getAllClassNames in 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 vendor/doctrine/common/lib/Doctrine/Common/Persistence/Mapping/Driver/SymfonyFileLocator.php
Gets all class names that are found with this file locator.

File

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!');
}