public function MappingDriverChain::setDefaultDriver

Set the default driver.

Parameters

MappingDriver $driver:

File

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

Class

MappingDriverChain
The DriverChain allows you to add multiple other mapping drivers for certain namespaces

Namespace

Doctrine\Common\Persistence\Mapping\Driver

Code

public function setDefaultDriver(MappingDriver $driver) {
  $this->defaultDriver = $driver;
}