doLog local

This commit is contained in:
2019-12-26 14:44:34 -03:00
parent 5f3efcf814
commit 0289ae6fea
2 changed files with 18 additions and 3 deletions

View File

@ -34,7 +34,10 @@ class Model extends \Model
$changes[$column] = ['column' => $column, 'old' => $old->$column, 'new' => $value]; $changes[$column] = ['column' => $column, 'old' => $old->$column, 'new' => $value];
} }
$action = '[' . get_called_class() . ']'; $action = '[' . get_called_class() . ']';
doLog($user, $action, $changes); $this->doLog($user, $action, $changes);
}
protected function doLog($user, $action, $variables) {
App\Service\Register::log($user, $action, $variables);
} }
public function getId() public function getId()
{ {

View File

@ -5,7 +5,9 @@
"require": { "require": {
"j4mie/paris": "^1.5", "j4mie/paris": "^1.5",
"nesbot/carbon": "^2.28", "nesbot/carbon": "^2.28",
"danielstjules/stringy": "^3" "danielstjules/stringy": "^3",
"aldarien/models": "dev-master",
"incoviba/auth": "dev-master"
}, },
"require-dev": { "require-dev": {
"phpunit/phpunit": "^8.5", "phpunit/phpunit": "^8.5",
@ -23,5 +25,15 @@
"Incoviba\\Common\\": "common", "Incoviba\\Common\\": "common",
"Incoviba\\": "src" "Incoviba\\": "src"
} }
} },
"repositories": [
{
"type": "vcs",
"url": "//192.168.1.100/git/models.git"
},
{
"type": "vcs",
"url": "//192.168.1.100/git/auth.git"
}
]
} }