1
0
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:
Oliver Vogel
2013-03-28 13:56:38 +01:00
parent 1e175ef39e
commit ce62edd577

View File

@@ -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)
*