mirror of
https://github.com/yiisoft/yii2.git
synced 2025-11-20 00:20:44 +08:00
@@ -35,7 +35,7 @@ abstract class Mutex extends Component
|
||||
{
|
||||
if ($this->autoRelease) {
|
||||
$locks = &$this->_locks;
|
||||
register_shutdown_function(function () use ($this, &$locks) {
|
||||
register_shutdown_function(function () use (&$locks) {
|
||||
foreach ($locks as $lock) {
|
||||
$this->release($lock);
|
||||
}
|
||||
|
||||
@@ -88,7 +88,7 @@ class ActionColumn extends Column
|
||||
*/
|
||||
protected function renderDataCellContent($model, $index)
|
||||
{
|
||||
return preg_replace_callback('/\\{(\w+)\\}/', function ($matches) use ($this, $model) {
|
||||
return preg_replace_callback('/\\{(\w+)\\}/', function ($matches) use ($model) {
|
||||
$name = $matches[1];
|
||||
if (isset($this->buttons[$name])) {
|
||||
return call_user_func($this->buttons[$name], $model, $this);
|
||||
|
||||
Reference in New Issue
Block a user