Skip to content
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

[Settings:set] update to check first config available stating in current site first, added french to doc #345

Open
wants to merge 25 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
25 commits
Select commit Hold shift + click to select a range
1096794
[chain] Avoid overwrite chain command options with global/default opt…
enzolutions May 25, 2017
b0f939c
Revert "[chain] Avoid overwrite chain command options with global/def…
enzolutions May 25, 2017
7eed558
[chain] Avoid overwrite chain command options with global/default opt…
enzolutions May 25, 2017
87cb227
Merge remote-tracking branch 'upstream/master'
enzolutions Jun 9, 2017
2655713
Remove YAML command in behalf of new separate repository https://gith…
enzolutions Jun 9, 2017
8d9dc91
Merge remote-tracking branch 'upstream/master'
enzolutions Jul 3, 2017
0f82011
Merge remote-tracking branch 'upstream/master'
enzolutions Jul 10, 2017
ccf5fc0
Merge remote-tracking branch 'upstream/master'
enzolutions Jul 12, 2017
7aaa09e
Fix language separator hyphen instead of underscore
enzolutions Jul 12, 2017
0835cf1
Merge remote-tracking branch 'upstream/master'
enzolutions Jul 13, 2017
bdc4c8e
Added constant DRUPAL_CONSOLE_LIBRARY to be used in library translations
enzolutions Jul 13, 2017
8986349
Merge remote-tracking branch 'upstream/master'
enzolutions Jul 13, 2017
7cbfa49
Merge remote-tracking branch 'upstream/master'
enzolutions Jul 14, 2017
8e16c27
Merge remote-tracking branch 'upstream/master'
enzolutions Jul 14, 2017
9dd109f
Merge remote-tracking branch 'upstream/master'
enzolutions Jul 17, 2017
7e7a8c5
Expose drush command to all users
enzolutions Jul 24, 2017
4449dbf
Register drush command as a regular command
enzolutions Jul 26, 2017
c19b02f
Merge remote-tracking branch 'upstream/master'
enzolutions Oct 4, 2017
a52116a
Merge remote-tracking branch 'upstream/master'
enzolutions Apr 13, 2018
4cfb9e2
Update logic to return commands and namespaces base on parameters to …
enzolutions Apr 18, 2018
eb59489
Merge remote-tracking branch 'upstream/master'
enzolutions May 9, 2018
c62582c
[Settings:set] update to check first config available stating in curr…
enzolutions May 9, 2018
93a0442
Merge remote-tracking branch 'upstream/master'
enzolutions May 17, 2019
303e992
merge with upstream/master v1.9.0
enzolutions Jun 6, 2019
61ebb85
Update console-en version to 1.9.0
enzolutions Jun 11, 2019
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@
"require": {
"php": "^5.5.9 || ^7.0",
"dflydev/dot-access-configuration": "^1.0",
"drupal/console-en": "1.8.0",
"drupal/console-en": "1.9.0",
"stecman/symfony-console-completion": "~0.7",
"symfony/config": "~2.8|~3.0",
"symfony/console": "~2.8|~3.0",
Expand Down
2 changes: 1 addition & 1 deletion dist/chain/update-gitbook.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ commands:
- views
- features
- command: 'develop:translation:sync'
{% set languages = ['en', 'ca', 'es', 'hi', 'hu', 'ja', 'mr', 'pt-br', 'ro', 'ru', 'vn' , 'zh-hans'] %}
{% set languages = ['en', 'ca', 'es', 'fr', 'hi', 'hu', 'ja', 'mr', 'pt-br', 'ro', 'ru', 'vn' , 'zh-hans'] %}
{% for language in languages %}
- command: settings:set
arguments:
Expand Down
20 changes: 20 additions & 0 deletions src/Utils/ConfigurationManager.php
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@ public function loadConfiguration($directory)
true
);
}

$input = new ArgvInput();
$root = $input->getParameterOption(['--root']);
if ($root && is_dir($root)) {
Expand Down Expand Up @@ -287,20 +288,39 @@ public function getConfigurationDirectories($includeVendorCore = false)
return [];
}

public function getConfigurationFile()
{
foreach (array_reverse($this->configurationDirectories) as $directory) {
$file = sprintf(
'%s/config.yml',
$directory
);

if (file_exists($file)) {
return $file;
}
}

return null;
}

private function addConfigurationFilesByDirectory(
$directory,
$addDirectory = false
) {

if ($addDirectory) {
$this->configurationDirectories[] = $directory;
}

$configurationFiles = [
'config' => 'config.yml',
'drush' => 'drush.yml',
'aliases' => 'aliases.yml',
'mappings' => 'mappings.yml',
'defaults' => 'defaults.yml',
];

foreach ($configurationFiles as $key => $file) {
$configFile = $directory.$file;
if (is_file($configFile)) {
Expand Down