Skip to content

Commit 6bbb7e5

Browse files
committed
moved etc/ to config/ and web/ to public/
1 parent 8fcdb44 commit 6bbb7e5

File tree

6 files changed

+10
-10
lines changed

6 files changed

+10
-10
lines changed

src/Configurator/BundlesConfigurator.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,6 +100,6 @@ private function dump(string $file, iterable $bundles): void
100100

101101
private function getConfFile(): string
102102
{
103-
return getcwd().'/etc/bundles.php';
103+
return getcwd().'/config/bundles.php';
104104
}
105105
}

src/Configurator/ContainerConfigurator.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ public function configure(Recipe $recipe, $parameters): void
2727
public function unconfigure(Recipe $recipe, $parameters): void
2828
{
2929
$this->write('Unsetting parameters');
30-
$target = getcwd().'/etc/container.yaml';
30+
$target = getcwd().'/config/container.yaml';
3131
$lines = [];
3232
foreach (file($target) as $line) {
3333
foreach (array_keys($parameters) as $key) {
@@ -42,7 +42,7 @@ public function unconfigure(Recipe $recipe, $parameters): void
4242

4343
private function addParameters(iterable $parameters): void
4444
{
45-
$target = getcwd().'/etc/container.yaml';
45+
$target = getcwd().'/config/container.yaml';
4646
$lines = [];
4747
foreach (file($target) as $line) {
4848
$lines[] = $line;

src/Flex.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -256,10 +256,10 @@ private function initOptions(): Options
256256
$options = array_merge([
257257
'bin-dir' => 'bin',
258258
'conf-dir' => 'conf',
259-
'etc-dir' => 'etc',
259+
'config-dir' => 'config',
260260
'src-dir' => 'src',
261261
'var-dir' => 'var',
262-
'web-dir' => 'web',
262+
'public-dir' => 'public',
263263
], $this->composer->getPackage()->getExtra());
264264

265265
return new Options($options);

tests/Configurator/BundlesConfiguratorTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ public function testConfigure()
2828

2929
$recipe = $this->getMockBuilder('Symfony\Flex\Recipe')->disableOriginalConstructor()->getMock();
3030

31-
$config = sys_get_temp_dir().'/etc/bundles.php';
31+
$config = sys_get_temp_dir().'/config/bundles.php';
3232
@unlink($config);
3333
$configurator->configure($recipe, [
3434
'FooBundle' => ['dev', 'test'],

tests/Configurator/ContainerConfiguratorTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ class ContainerConfiguratorTest extends TestCase
2121
public function testConfigure()
2222
{
2323
$recipe = $this->getMockBuilder('Symfony\Flex\Recipe')->disableOriginalConstructor()->getMock();
24-
$config = sys_get_temp_dir().'/etc/container.yaml';
24+
$config = sys_get_temp_dir().'/config/container.yaml';
2525
file_put_contents($config, <<<EOF
2626
# comment
2727
parameters:

tests/FlexTest.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ public function testPostInstall()
4040
'manifests' => [
4141
'dummy/dummy' => [
4242
'manifest' => [
43-
'post-install-output' => ['line 1 %ETC_DIR%', 'line 2 %VAR_DIR%'],
43+
'post-install-output' => ['line 1 %CONFIG_DIR%', 'line 2 %VAR_DIR%'],
4444
'bundles' => [
4545
'Symfony\\Bundle\\FrameworkBundle\\FrameworkBundle' => ['all'],
4646
],
@@ -69,15 +69,15 @@ public function testPostInstall()
6969
$flex->configurator = $configurator;
7070
$flex->downloader = $downloader;
7171
$flex->runningCommand = function() {};
72-
$flex->options = new Options(['etc-dir' => 'etc', 'var-dir' => 'var']);
72+
$flex->options = new Options(['config-dir' => 'config', 'var-dir' => 'var']);
7373

7474
return $flex;
7575
}, null, Flex::class)->__invoke();
7676
$flex->record($event);
7777
$flex->install($this->getMockBuilder(Event::class)->disableOriginalConstructor()->getMock());
7878

7979
$postInstallOutput = \Closure::bind(function () { return $this->postInstallOutput; }, $flex, Flex::class)->__invoke();
80-
$this->assertSame(['', 'line 1 etc', 'line 2 var', ''], $postInstallOutput);
80+
$this->assertSame(['', 'line 1 config', 'line 2 var', ''], $postInstallOutput);
8181

8282
$this->assertSame(<<<EOF
8383
Symfony operations: 1 recipe

0 commit comments

Comments
 (0)