public function PHPDriver::__construct in Plug 7
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
- lib/
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\DriverCode
public function __construct($locator, $fileExtension = null) {
$fileExtension = ".php";
parent::__construct($locator, $fileExtension);
}