mirror of
https://github.com/Intervention/image.git
synced 2025-08-29 00:29:55 +02:00
removed runAction method
This commit is contained in:
@@ -1302,30 +1302,6 @@ class Image
|
|||||||
return $this;
|
return $this;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* Applies set of operations on current image
|
|
||||||
*
|
|
||||||
* @param Array $action
|
|
||||||
* @return Image
|
|
||||||
*/
|
|
||||||
public function runAction($action)
|
|
||||||
{
|
|
||||||
if (is_array($action) && count($action)) {
|
|
||||||
// apply action array on current image
|
|
||||||
foreach ($action as $method_name => $params) {
|
|
||||||
if (is_array($params)) {
|
|
||||||
call_user_method_array($method_name, $this, $params);
|
|
||||||
} else {
|
|
||||||
call_user_method($method_name, $this);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
} else {
|
|
||||||
throw new Exception('Given action must be defined as an array.');
|
|
||||||
}
|
|
||||||
|
|
||||||
return $this;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Convert rgba alpha (0-1) value to gd value (0-127)
|
* Convert rgba alpha (0-1) value to gd value (0-127)
|
||||||
*
|
*
|
||||||
|
Reference in New Issue
Block a user