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) {
|
if ($this->autoRelease) {
|
||||||
$locks = &$this->_locks;
|
$locks = &$this->_locks;
|
||||||
register_shutdown_function(function () use ($this, &$locks) {
|
register_shutdown_function(function () use (&$locks) {
|
||||||
foreach ($locks as $lock) {
|
foreach ($locks as $lock) {
|
||||||
$this->release($lock);
|
$this->release($lock);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -88,7 +88,7 @@ class ActionColumn extends Column
|
|||||||
*/
|
*/
|
||||||
protected function renderDataCellContent($model, $index)
|
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];
|
$name = $matches[1];
|
||||||
if (isset($this->buttons[$name])) {
|
if (isset($this->buttons[$name])) {
|
||||||
return call_user_func($this->buttons[$name], $model, $this);
|
return call_user_func($this->buttons[$name], $model, $this);
|
||||||
|
|||||||
Reference in New Issue
Block a user