summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/driver/flash.php1
-rw-r--r--src/driver/gd.php1
-rw-r--r--src/driver/svg.php1
3 files changed, 3 insertions, 0 deletions
diff --git a/src/driver/flash.php b/src/driver/flash.php
index 93ace00..c17c483 100644
--- a/src/driver/flash.php
+++ b/src/driver/flash.php
@@ -45,6 +45,7 @@ class ezcGraphFlashDriver extends ezcGraphDriver
*/
public function __construct( array $options = array() )
{
+ ezcBase::checkDependency( 'Graph', ezcBase::DEP_PHP_EXTENSION, 'ming' );
$this->options = new ezcGraphFlashDriverOptions( $options );
}
diff --git a/src/driver/gd.php b/src/driver/gd.php
index 19fa85d..c385b90 100644
--- a/src/driver/gd.php
+++ b/src/driver/gd.php
@@ -66,6 +66,7 @@ class ezcGraphGdDriver extends ezcGraphDriver
*/
public function __construct( array $options = array() )
{
+ ezcBase::checkDependency( 'Graph', ezcBase::DEP_PHP_EXTENSION, 'gd' );
$this->options = new ezcGraphGdDriverOptions( $options );
}
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