public function FileDriver::__construct in Zircon Profile 8
Same name and namespace in other branches
- 8.0 vendor/doctrine/common/lib/Doctrine/Common/Persistence/Mapping/Driver/FileDriver.php \Doctrine\Common\Persistence\Mapping\Driver\FileDriver::__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:
1 call to FileDriver::__construct()
- PHPDriver::__construct in vendor/
doctrine/ common/ lib/ Doctrine/ Common/ Persistence/ Mapping/ Driver/ PHPDriver.php - Initializes a new FileDriver that looks in the given path(s) for mapping documents and operates in the specified operating mode.
1 method overrides FileDriver::__construct()
- PHPDriver::__construct in vendor/
doctrine/ common/ lib/ Doctrine/ Common/ Persistence/ Mapping/ Driver/ PHPDriver.php - Initializes a new FileDriver that looks in the given path(s) for mapping documents and operates in the specified operating mode.
File
- vendor/
doctrine/ common/ lib/ Doctrine/ Common/ Persistence/ Mapping/ Driver/ FileDriver.php, line 64
Class
- FileDriver
- Base driver for file-based metadata drivers.
Namespace
Doctrine\Common\Persistence\Mapping\DriverCode
public function __construct($locator, $fileExtension = null) {
if ($locator instanceof FileLocator) {
$this->locator = $locator;
}
else {
$this->locator = new DefaultFileLocator((array) $locator, $fileExtension);
}
}