Skip to content

Commit 66c3eb2

Browse files
authored
Merge pull request #1983 from nWidart/set-config-publish-to-use-config-tag
set config as the tag
2 parents bebe5b4 + 9e3cf81 commit 66c3eb2

12 files changed

+12
-12
lines changed

src/Commands/stubs/scaffold/provider.stub

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ class $CLASS$ extends ServiceProvider
9090
$configKey = $this->nameLower . '.' . str_replace([DIRECTORY_SEPARATOR, '.php'], ['.', ''], $relativePath);
9191
$key = ($relativePath === 'config.php') ? $this->nameLower : $configKey;
9292

93-
$this->publishes([$file->getPathname() => config_path($relativePath)], $configPath);
93+
$this->publishes([$file->getPathname() => config_path($relativePath)], 'config');
9494
$this->mergeConfigFrom($file->getPathname(), $key);
9595
}
9696
}

tests/Commands/Make/__snapshots__/ModuleMakeCommandTest__test_it_generate_module_when_provider_is_enable_and_route_provider_is_disable__1.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ class BlogServiceProvider extends ServiceProvider
9090
$configKey = $this->nameLower . '.' . str_replace([DIRECTORY_SEPARATOR, '.php'], ['.', ''], $relativePath);
9191
$key = ($relativePath === 'config.php') ? $this->nameLower : $configKey;
9292

93-
$this->publishes([$file->getPathname() => config_path($relativePath)], $configPath);
93+
$this->publishes([$file->getPathname() => config_path($relativePath)], 'config');
9494
$this->mergeConfigFrom($file->getPathname(), $key);
9595
}
9696
}

tests/Commands/Make/__snapshots__/ModuleMakeCommandTest__test_it_generate_module_when_provider_is_enable_and_route_provider_is_enable__1.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ class BlogServiceProvider extends ServiceProvider
9090
$configKey = $this->nameLower . '.' . str_replace([DIRECTORY_SEPARATOR, '.php'], ['.', ''], $relativePath);
9191
$key = ($relativePath === 'config.php') ? $this->nameLower : $configKey;
9292

93-
$this->publishes([$file->getPathname() => config_path($relativePath)], $configPath);
93+
$this->publishes([$file->getPathname() => config_path($relativePath)], 'config');
9494
$this->mergeConfigFrom($file->getPathname(), $key);
9595
}
9696
}

tests/Commands/Make/__snapshots__/ModuleMakeCommandTest__test_it_generates_api_module_with_resources__1.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ class BlogServiceProvider extends ServiceProvider
9090
$configKey = $this->nameLower . '.' . str_replace([DIRECTORY_SEPARATOR, '.php'], ['.', ''], $relativePath);
9191
$key = ($relativePath === 'config.php') ? $this->nameLower : $configKey;
9292

93-
$this->publishes([$file->getPathname() => config_path($relativePath)], $configPath);
93+
$this->publishes([$file->getPathname() => config_path($relativePath)], 'config');
9494
$this->mergeConfigFrom($file->getPathname(), $key);
9595
}
9696
}

tests/Commands/Make/__snapshots__/ModuleMakeCommandTest__test_it_generates_module_namespace_using_studly_case__1.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ class ModuleNameServiceProvider extends ServiceProvider
9090
$configKey = $this->nameLower . '.' . str_replace([DIRECTORY_SEPARATOR, '.php'], ['.', ''], $relativePath);
9191
$key = ($relativePath === 'config.php') ? $this->nameLower : $configKey;
9292

93-
$this->publishes([$file->getPathname() => config_path($relativePath)], $configPath);
93+
$this->publishes([$file->getPathname() => config_path($relativePath)], 'config');
9494
$this->mergeConfigFrom($file->getPathname(), $key);
9595
}
9696
}

tests/Commands/Make/__snapshots__/ModuleMakeCommandTest__test_it_generates_module_resources__1.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ class BlogServiceProvider extends ServiceProvider
9090
$configKey = $this->nameLower . '.' . str_replace([DIRECTORY_SEPARATOR, '.php'], ['.', ''], $relativePath);
9191
$key = ($relativePath === 'config.php') ? $this->nameLower : $configKey;
9292

93-
$this->publishes([$file->getPathname() => config_path($relativePath)], $configPath);
93+
$this->publishes([$file->getPathname() => config_path($relativePath)], 'config');
9494
$this->mergeConfigFrom($file->getPathname(), $key);
9595
}
9696
}

tests/Commands/Make/__snapshots__/ModuleMakeCommandTest__test_it_generates_web_module_with_resources__1.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ class BlogServiceProvider extends ServiceProvider
9090
$configKey = $this->nameLower . '.' . str_replace([DIRECTORY_SEPARATOR, '.php'], ['.', ''], $relativePath);
9191
$key = ($relativePath === 'config.php') ? $this->nameLower : $configKey;
9292

93-
$this->publishes([$file->getPathname() => config_path($relativePath)], $configPath);
93+
$this->publishes([$file->getPathname() => config_path($relativePath)], 'config');
9494
$this->mergeConfigFrom($file->getPathname(), $key);
9595
}
9696
}

tests/Commands/Make/__snapshots__/ModuleMakeCommandTest__test_it_generates_web_module_with_resources_when_adding_more_than_one_option__1.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ class BlogServiceProvider extends ServiceProvider
9090
$configKey = $this->nameLower . '.' . str_replace([DIRECTORY_SEPARATOR, '.php'], ['.', ''], $relativePath);
9191
$key = ($relativePath === 'config.php') ? $this->nameLower : $configKey;
9292

93-
$this->publishes([$file->getPathname() => config_path($relativePath)], $configPath);
93+
$this->publishes([$file->getPathname() => config_path($relativePath)], 'config');
9494
$this->mergeConfigFrom($file->getPathname(), $key);
9595
}
9696
}

tests/Commands/Make/__snapshots__/ProviderMakeCommandTest__test_it_can_change_the_default_namespace__1.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ class BlogServiceProvider extends ServiceProvider
9090
$configKey = $this->nameLower . '.' . str_replace([DIRECTORY_SEPARATOR, '.php'], ['.', ''], $relativePath);
9191
$key = ($relativePath === 'config.php') ? $this->nameLower : $configKey;
9292

93-
$this->publishes([$file->getPathname() => config_path($relativePath)], $configPath);
93+
$this->publishes([$file->getPathname() => config_path($relativePath)], 'config');
9494
$this->mergeConfigFrom($file->getPathname(), $key);
9595
}
9696
}

tests/Commands/Make/__snapshots__/ProviderMakeCommandTest__test_it_can_change_the_default_namespace_specific__1.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ class BlogServiceProvider extends ServiceProvider
9090
$configKey = $this->nameLower . '.' . str_replace([DIRECTORY_SEPARATOR, '.php'], ['.', ''], $relativePath);
9191
$key = ($relativePath === 'config.php') ? $this->nameLower : $configKey;
9292

93-
$this->publishes([$file->getPathname() => config_path($relativePath)], $configPath);
93+
$this->publishes([$file->getPathname() => config_path($relativePath)], 'config');
9494
$this->mergeConfigFrom($file->getPathname(), $key);
9595
}
9696
}

0 commit comments

Comments
 (0)