Skip to content

Commit

Permalink
[General] sets default value for siteName.
Browse files Browse the repository at this point in the history
  • Loading branch information
cbleek committed Apr 29, 2015
1 parent 019ec64 commit 20b8e74
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 9 deletions.
18 changes: 13 additions & 5 deletions module/Core/config/module.core.options.local.php.dist
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,16 @@
* @author weitz@cross-solution.de
*/

return array(
'core_options' => array(
'siteName' => '',
)
);
/*
* to modify the options, copy this file without the ".dist" suffix to the
* autoload directory and modify the values
*/

$options = array(
/**
* The sitename is used in Mails. Typically it's the name of your website
*/
'siteName' => 'YAWIK',
);

return array('core_options',$options);
11 changes: 7 additions & 4 deletions module/Core/src/Core/Options/ModuleOptions.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,10 @@
*/
class ModuleOptions extends AbstractOptions {

protected $siteName;
/**
* The sitename is used in Mails. Typically it's the name of your website
*/
protected $siteName="YAWIK";

public function setSiteName($siteName)
{
Expand All @@ -32,9 +35,9 @@ public function setSiteName($siteName)
public function getSiteName()
{
if (empty($this->siteName)) {
throw new \InvalidArgumentException(
'the argument sitename has to be defined'
);
throw new \InvalidArgumentException(
'the argument sitename has to be defined'
);
}
return $this->siteName;
}
Expand Down
1 change: 1 addition & 0 deletions module/Jobs/config/module.config.php
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,7 @@
'Jobs',
'Jobs/Manage' => array(
'edit',
'completion',
'new' => 'Jobs/Create',
),
'JobboardRecruiter',
Expand Down

0 comments on commit 20b8e74

Please sign in to comment.