Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

wrap settings in a class #1

Closed
micheleorselli opened this Issue · 1 comment

3 participants

@micheleorselli

The configuration defined in $target inside an idxfile.php is now available inside idephix as an array. It could be useful to wrap the configuration settings in a class which:

  • hides the actual implementation, simplifying future changes
  • makes easy to get values, allowing for default values eg:
$config->get('ssh_params.user', 'kea')

vs

if (isset($config['ssh_params'] && isset($config['ssh_params']['user'])
@cirpo

It could be also useful to have the same config for different hosts.
For example multiple machines with the same remote_base_folder, the only thing that can change is the host(target machine).

Pseudo code: https://gist.github.com/cirpo/5abce3457f8eb6f526fd

@kea kea closed this
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.