Commit 1d569dca authored by Jon Pugh's avatar Jon Pugh

Change Property::default() to Property::defaultValue() so it still works in php5.

parent f263b42b
......@@ -35,7 +35,7 @@ class ServerContext extends ContextProvider implements ConfigurationInterface
Provision::newProperty()
->description('server: host name')
->required(TRUE)
->default('localhost')
->defaultValue('localhost')
->validate(function($remote_host) {
// If remote_host doesn't resolve to anything, warn the user.
$ip = gethostbynamel($remote_host);
......@@ -48,12 +48,12 @@ class ServerContext extends ContextProvider implements ConfigurationInterface
Provision::newProperty()
->description('server: OS user name')
->required(TRUE)
->default(Config::getScriptUser()),
->defaultValue(Config::getScriptUser()),
'aegir_root' =>
Provision::newProperty()
->description('server: aegir user home directory')
->required(TRUE)
->default(Config::getHomeDir()),
->defaultValue(Config::getHomeDir()),
// @TODO: Why do server contexts need a master_url?
'master_url' =>
Provision::newProperty()
......
......@@ -89,7 +89,7 @@ class Property {
*
* @return $this
*/
public function default($default) {
public function defaultValue($default) {
if (is_callable($default)) {
$this->default = $default();
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment