예제 #1
0
 /**
  * Constructor
  *
  * @param array|\Traversable $options
  * @throws RendererCreationException
  */
 public function __construct($options = null)
 {
     if (!function_exists('gd_info')) {
         throw new RendererCreationException(__CLASS__ . ' requires the GD extension');
     }
     parent::__construct($options);
 }
예제 #2
0
 /**
  * Constructor
  * @param array|\Zend\Config\Config $options
  * @return void
  */
 public function __construct($options = null)
 {
     if (!function_exists('gd_info')) {
         throw new RendererCreationException('\\Zend\\Barcode\\Renderer\\Image requires the GD extension');
     }
     parent::__construct($options);
 }