summaryrefslogtreecommitdiffstats
path: root/src/driver/svg.php
diff options
context:
space:
mode:
authorKore Nordmann <github@kore-nordmann.de>2007-01-04 10:15:48 +0000
committerKore Nordmann <github@kore-nordmann.de>2007-01-04 10:15:48 +0000
commitf1983871f351d2195102760db3141ed70f8772a9 (patch)
treed4afeca7e424fed39ca1b92e6ddda39d62385cff /src/driver/svg.php
parent65cfcdc9adc89cdb7888dc6d826159a517e60108 (diff)
downloadzetacomponents-graph-f1983871f351d2195102760db3141ed70f8772a9.zip
zetacomponents-graph-f1983871f351d2195102760db3141ed70f8772a9.tar.gz
- Rosolved task #9889: Throw meaningful exception if extension needed for
driver is not available. # Actually using ezcBase::checkDependency() which calls die() instead of # throwing an exception
Diffstat (limited to 'src/driver/svg.php')
-rw-r--r--src/driver/svg.php1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/driver/svg.php b/src/driver/svg.php
index a30c15d..0c2c374 100644
--- a/src/driver/svg.php
+++ b/src/driver/svg.php
@@ -71,6 +71,7 @@ class ezcGraphSvgDriver extends ezcGraphDriver
*/
public function __construct( array $options = array() )
{
+ ezcBase::checkDependency( 'Graph', ezcBase::DEP_PHP_EXTENSION, 'dom' );
$this->options = new ezcGraphSvgDriverOptions( $options );
}
OpenPOWER on IntegriCloud