mirror of
https://github.com/Intervention/image.git
synced 2025-08-28 16:19:50 +02:00
removed runAction method
This commit is contained in:
@@ -1302,30 +1302,6 @@ class Image
|
||||
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)
|
||||
*
|
||||
|
Reference in New Issue
Block a user