Commit a4795d63 authored by zYne's avatar zYne

added hasImpl()

parent 2ee78d7d
...@@ -226,6 +226,18 @@ abstract class Doctrine_Configurable extends Doctrine_Locator_Injectable ...@@ -226,6 +226,18 @@ abstract class Doctrine_Configurable extends Doctrine_Locator_Injectable
return $this->_impl[$template]; return $this->_impl[$template];
} }
public function hasImpl($template)
{
if ( ! isset($this->_impl[$template])) {
if (isset($this->parent)) {
return $this->parent->hasImpl($template);
}
return false;
}
return true;
}
/** /**
* getCacheDriver * getCacheDriver
* *
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment