Skip to content

Commit 69d5099

Browse files
authored
[CLEANUP] Rename web/ to public/ (#51)
This will bring the project closer to the default Symfony project structure.
1 parent 59aae3c commit 69d5099

File tree

4 files changed

+11
-11
lines changed

4 files changed

+11
-11
lines changed

.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,6 @@
1010
/Configuration/parameters.yml
1111
/Configuration/routing_modules.yml
1212
/nbproject
13+
/public/
1314
/var/
1415
/vendor/
15-
/web/

CHANGELOG.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ This project adheres to [Semantic Versioning](https://semver.org/).
1010
- Integration tests for the dev and test environment (#44)
1111

1212
### Changed
13-
- Adopt more of the default Symfony project structure (#49, #50)
13+
- Adopt more of the default Symfony project structure (#49, #50, #51)
1414

1515
### Deprecated
1616

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@
8080
"symfony-app-dir": "bin",
8181
"symfony-bin-dir": "bin",
8282
"symfony-var-dir": "var",
83-
"symfony-web-dir": "web",
83+
"symfony-web-dir": "public",
8484
"symfony-tests-dir": "tests",
8585
"phplist/phplist4-core": {
8686
"bundles": [],

tests/Integration/Composer/ScriptsTest.php

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -15,23 +15,23 @@ class ScriptsTest extends TestCase
1515
/**
1616
* @test
1717
*/
18-
public function webDirectoryHasBeenCreated()
18+
public function publicDirectoryHasBeenCreated()
1919
{
20-
static::assertDirectoryExists($this->getAbsoluteWebDirectoryPath());
20+
static::assertDirectoryExists($this->getAbsolutePublicDirectoryPath());
2121
}
2222

2323
/**
2424
* @return string
2525
*/
26-
private function getAbsoluteWebDirectoryPath(): string
26+
private function getAbsolutePublicDirectoryPath(): string
2727
{
28-
return dirname(__DIR__, 3) . '/web/';
28+
return dirname(__DIR__, 3) . '/public/';
2929
}
3030

3131
/**
3232
* @return string[][]
3333
*/
34-
public function webDirectoryFilesDataProvider(): array
34+
public function publicDirectoryFilesDataProvider(): array
3535
{
3636
return [
3737
'production entry point' => ['app.php'],
@@ -44,11 +44,11 @@ public function webDirectoryFilesDataProvider(): array
4444
/**
4545
* @test
4646
* @param string $fileName
47-
* @dataProvider webDirectoryFilesDataProvider
47+
* @dataProvider publicDirectoryFilesDataProvider
4848
*/
49-
public function webDirectoryFilesExist(string $fileName)
49+
public function publicDirectoryFilesExist(string $fileName)
5050
{
51-
static::assertFileExists($this->getAbsoluteWebDirectoryPath() . $fileName);
51+
static::assertFileExists($this->getAbsolutePublicDirectoryPath() . $fileName);
5252
}
5353

5454
/**

0 commit comments

Comments
 (0)