Skip to content

Commit

Permalink
Change config keys to snake case
Browse files Browse the repository at this point in the history
  • Loading branch information
mpociot committed Sep 3, 2019
1 parent e9f1bfe commit abd7906
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 8 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@

All notable changes to `ignition` will be documented in this file

## 1.4.1 - 2019-09-03

- Change `remote-sites-path` and `local-sites-path` config keys to us snake case

## 1.4.0 - 2019-09-03

- add `enable_runnable_solutions` key to config file
Expand Down
8 changes: 4 additions & 4 deletions config/ignition.php
Original file line number Diff line number Diff line change
Expand Up @@ -77,16 +77,16 @@
| Leaving either one, or both of these, empty or null will not trigger the
| remote URL changes, and will treat your editor links as local files.
|
| 'remote-sites-path' is the full base path of your sites or projects inside
| 'remote_sites_path' is the full base path of your sites or projects inside
| homestead, Docker, or remote dev servers, for example
| `/home/vagrant/Code`.
| 'local-sites-path' is the full base path of your sites or projects on your
| 'local_sites_path' is the full base path of your sites or projects on your
| local computer that your IDE or editor is running on,
| for example `/Users/<name>/Code` or
| `C:\Users\<name>\Documents\Code`.
*/

'remote-sites-path' => env('IGNITION_REMOTE_SITES_PATH', ''),
'local-sites-path' => env('IGNITION_LOCAL_SITES_PATH', ''),
'remote_sites_path' => env('IGNITION_REMOTE_SITES_PATH', ''),
'local_sites_path' => env('IGNITION_LOCAL_SITES_PATH', ''),

];
4 changes: 2 additions & 2 deletions resources/compiled/ignition.js

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions src/IgnitionConfig.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,12 +22,12 @@ public function getEditor(): ?string

public function getRemoteSitesPath(): ?string
{
return Arr::get($this->options, 'remote-sites-path');
return Arr::get($this->options, 'remote_sites_path');
}

public function getLocalSitesPath(): ?string
{
return Arr::get($this->options, 'local-sites-path');
return Arr::get($this->options, 'local_sites_path');
}

public function getTheme(): ?string
Expand Down

0 comments on commit abd7906

Please sign in to comment.