コード例 #1
0
 public function __construct($service_id, $code = 0, Exception $previous = null)
 {
     $message = sprintf(__('Service not found: %s', 'fw'), $service_id);
     if (version_compare(PHP_VERSION, '5.3.0') >= 0) {
         parent::__construct($message, $code, $previous);
     } else {
         parent::__construct($message, $code);
     }
 }
 public function __construct($service_id, $instanceof, $code = 0, Exception $previous = null)
 {
     $message = sprintf(__('Invalid Service Interface: %s, should be instance of %s', 'fw'), $service_id, $instanceof);
     if (version_compare(PHP_VERSION, '5.3.0') >= 0) {
         parent::__construct($message, $code, $previous);
     } else {
         parent::__construct($message, $code);
     }
 }