public function PHPDriver::__construct

Initializes a new FileDriver that looks in the given path(s) for mapping documents and operates in the specified operating mode.

Parameters

string|array|FileLocator $locator A FileLocator or one/multiple paths where mapping documents can be found.:

string $fileExtension:

Overrides FileDriver::__construct

File

drupal/core/vendor/doctrine/common/lib/Doctrine/Common/Persistence/Mapping/Driver/PHPDriver.php, line 47

Class

PHPDriver
The PHPDriver includes php files which just populate ClassMetadataInfo instances with plain php code

Namespace

Doctrine\Common\Persistence\Mapping\Driver

Code

public function __construct($locator, $fileExtension = null) {
  $fileExtension = ".php";
  parent::__construct($locator, $fileExtension);
}