public function MappingDriverChain::addDriver in Zircon Profile 8
Same name and namespace in other branches
- 8.0 vendor/doctrine/common/lib/Doctrine/Common/Persistence/Mapping/Driver/MappingDriverChain.php \Doctrine\Common\Persistence\Mapping\Driver\MappingDriverChain::addDriver()
Adds a nested driver.
Parameters
MappingDriver $nestedDriver:
string $namespace:
Return value
void
File
- vendor/
doctrine/ common/ lib/ Doctrine/ Common/ Persistence/ Mapping/ Driver/ MappingDriverChain.php, line 79
Class
- MappingDriverChain
- The DriverChain allows you to add multiple other mapping drivers for certain namespaces.
Namespace
Doctrine\Common\Persistence\Mapping\DriverCode
public function addDriver(MappingDriver $nestedDriver, $namespace) {
$this->drivers[$namespace] = $nestedDriver;
}