Skip to content

Commit d30307e

Browse files
oliverkleeSam Tuke
authored andcommitted
[CLEANUP] Rename web/ to public/ (#270)
This brings the project more in line with the default Symfony project structure.
1 parent 12ca434 commit d30307e

File tree

14 files changed

+13
-13
lines changed

14 files changed

+13
-13
lines changed

.github/CONTRIBUTING.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ We will only merge pull requests that follow the project's coding style.
118118
Please check your code with the provided PHP_CodeSniffer standard:
119119

120120
```bash
121-
vendor/bin/phpcs --standard=Configuration/PhpCodeSniffer/ bin/ src/ tests/ web/
121+
vendor/bin/phpcs --standard=Configuration/PhpCodeSniffer/ bin/ src/ tests/ public/
122122
```
123123

124124
Please also check the code structure using PHPMD:
@@ -130,13 +130,13 @@ vendor/bin/phpmd src/ text Configuration/PHPMD/rules.xml
130130
And also please run the static code analysis:
131131

132132
```bash
133-
vendor/bin/phpstan analyse -l 5 bin/ src/ tests/ web/
133+
vendor/bin/phpstan analyse -l 5 bin/ src/ tests/ public/
134134
```
135135

136136
You can also run all code style checks using one long line from a bash shell:
137137

138138
```bash
139-
find src/ tests/ web/ -name '*.php' -print0 | xargs -0 -n 1 -P 4 php -l && php -l bin/* && vendor/bin/phpstan analyse -l 5 bin/ src/ tests/ web/ && vendor/bin/phpmd src/ text Configuration/PHPMD/rules.xml && vendor/bin/phpcs --standard=Configuration/PhpCodeSniffer/ bin/ src/ tests/ web/
139+
find src/ tests/ public/ -name '*.php' -print0 | xargs -0 -n 1 -P 4 php -l && php -l bin/* && vendor/bin/phpstan analyse -l 5 bin/ src/ tests/ public/ && vendor/bin/phpmd src/ text Configuration/PHPMD/rules.xml && vendor/bin/phpcs --standard=Configuration/PhpCodeSniffer/ bin/ src/ tests/ public/
140140
```
141141

142142
This will execute all tests except for the unit tests and the integration

.travis.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ script:
5959
- >
6060
echo;
6161
echo "Linting all PHP files";
62-
find src/ tests/ web/ -name ''*.php'' -print0 | xargs -0 -n 1 -P 4 php -l; php -l bin/*;
62+
find src/ tests/ public/ -name ''*.php'' -print0 | xargs -0 -n 1 -P 4 php -l; php -l bin/*;
6363
6464
- >
6565
echo;
@@ -79,7 +79,7 @@ script:
7979
- >
8080
echo;
8181
echo "Running the static analysis";
82-
vendor/bin/phpstan analyse -l 5 bin/ src/ tests/ web/;
82+
vendor/bin/phpstan analyse -l 5 bin/ src/ tests/ public/;
8383
8484
- >
8585
echo;
@@ -89,4 +89,4 @@ script:
8989
- >
9090
echo;
9191
echo "Running PHP_CodeSniffer";
92-
vendor/bin/phpcs --standard=Configuration/PhpCodeSniffer/ bin/ src/ tests/ web/;
92+
vendor/bin/phpcs --standard=Configuration/PhpCodeSniffer/ bin/ src/ tests/ public/;

CHANGELOG.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ This project adheres to [Semantic Versioning](https://semver.org/).
1313

1414
### Changed
1515
- Remove the obsolete core classes (#267)
16-
- Adopt more of the default Symfony project structure (#265, #268)
16+
- Adopt more of the default Symfony project structure (#265, #268, #269, #270)
1717

1818
### Deprecated
1919

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ For running the application in development mode using the built-in PHP server,
7171
use this command:
7272

7373
```bash
74-
bin/console server:run -d web/
74+
bin/console server:run -d public/
7575
```
7676

7777
The server will then listen on `http://127.0.0.1:8000` (or, if port 8000 is
@@ -85,7 +85,7 @@ To run the server in testing mode (which normally will only be needed for the
8585
automated tests, provide the `--env` option:
8686

8787
```bash
88-
bin/console server:run -d web/ --env=test
88+
bin/console server:run -d public/ --env=test
8989
```
9090

9191
### Production

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@
9090
"symfony-app-dir": "",
9191
"symfony-bin-dir": "bin",
9292
"symfony-var-dir": "var",
93-
"symfony-web-dir": "web",
93+
"symfony-web-dir": "public",
9494
"symfony-tests-dir": "tests",
9595
"phplist/phplist4-core": {
9696
"bundles": [
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)