4 Commits
Author SHA1 Message Date
bence 014a548096 Merge pull request 'add interface IAuthenticationRequired' (#4) from feature/interface-for-authentication-required into master
soko-web/pipeline/head This commit looks good
Reviewed-on: #4
2023-04-16 16:54:22 +02:00
bence 298a1e34ac add interface IAuthenticationRequired
soko-web/pipeline/pr-master This commit looks good
2023-04-16 16:43:53 +02:00
bence 4af7ae3521 Merge pull request 'fix check in PersistentDataManager' (#3) from bugfix/fix-check-in-persistentdatamanager into master
soko-web/pipeline/head This commit looks good
Reviewed-on: #3
2023-04-16 16:00:29 +02:00
bence 9d4cb86d41 fix check in PersistentDataManager
soko-web/pipeline/pr-master This commit looks good
2023-04-16 15:59:47 +02:00
2 changed files with 7 additions and 1 deletions

No files matched your search

@@ -0,0 +1,6 @@
<?php namespace SokoWeb\Interfaces\Authentication;
interface IAuthenticationRequired
{
public function isAuthenticationRequired(): bool;
}
+1 -1
View File
@@ -57,7 +57,7 @@ class PersistentDataManager
$value = current($data); $value = current($data);
$relation = key($relations); $relation = key($relations);
if (strpos($key, '__') == false) { if (strpos($key, '__') === false) {
$method = 'set' . str_replace('_', '', ucwords($key, '_')); $method = 'set' . str_replace('_', '', ucwords($key, '_'));
if (method_exists($model, $method) && isset($value)) { if (method_exists($model, $method) && isset($value)) {