-
Notifications
You must be signed in to change notification settings - Fork 10
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
#4 Settings does not exist #5
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It's a great job! But fix some minor changes, please.
Service/Settings.php
Outdated
return $value->getValue(); | ||
} | ||
|
||
return ""; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
must be return null;
Service/Settings.php
Outdated
@@ -98,19 +107,24 @@ private function loadGroup($name) | |||
* | |||
* @param string $name Setting name or group name (if $subname is set) | |||
* @param string|null $subname Setting name (use with $name as group name) | |||
* @param null $default The default value if the setting key does not exist |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Type of $default must be mixed|null
Service/Settings.php
Outdated
@@ -48,7 +52,12 @@ private function getCacheGroupKey($name) | |||
|
|||
private function fetch($name) | |||
{ | |||
return $this->repository->findOneBy(array('name' => $name))->getValue(); | |||
$value = $this->repository->findOneBy(array('name' => $name)); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Variable name must be $setting
I pushed changes. |
No description provided.