You are here

public function PHPDriver::__construct in Zircon Profile 8.0

Same name and namespace in other branches
  1. 8 vendor/doctrine/common/lib/Doctrine/Common/Persistence/Mapping/Driver/PHPDriver.php \Doctrine\Common\Persistence\Mapping\Driver\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|null $fileExtension:

Overrides FileDriver::__construct

File

vendor/doctrine/common/lib/Doctrine/Common/Persistence/Mapping/Driver/PHPDriver.php, line 45

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