Skip to content

Commit fedaf4a

Browse files
committed
feature #106 Move etc/ to config/ and web/ to public/ (fabpot)
This PR was squashed before being merged into the master branch (closes #106). Discussion ---------- Move etc/ to config/ and web/ to public/ | Q | A | ------------- | --- | License | MIT Must be merged just after symfony/flex#122 Commits ------- 0cf07ad fixed some file names bf2148f moved etc/ to config/ and web/ to public/
2 parents 499cad4 + 0cf07ad commit fedaf4a

File tree

51 files changed

+45
-45
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

51 files changed

+45
-45
lines changed

README.rst

Lines changed: 16 additions & 16 deletions

api-platform/core/2.1/manifest.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"ApiPlatform\\Core\\Bridge\\Symfony\\Bundle\\ApiPlatformBundle": ["all"]
44
},
55
"copy-from-recipe": {
6-
"etc/": "%ETC_DIR%/",
6+
"config/": "%CONFIG_DIR%/",
77
"src/": "%SRC_DIR%/"
88
}
99
}

doctrine/doctrine-bundle/1.6/manifest.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"Doctrine\\Bundle\\DoctrineBundle\\DoctrineBundle": ["all"]
44
},
55
"copy-from-recipe": {
6-
"etc/": "%ETC_DIR%/",
6+
"config/": "%CONFIG_DIR%/",
77
"src/": "%SRC_DIR%/"
88
},
99
"env": {

doctrine/doctrine-migrations-bundle/1.2/manifest.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"Doctrine\\Bundle\\MigrationsBundle\\DoctrineMigrationsBundle": ["all"]
44
},
55
"copy-from-recipe": {
6-
"etc/": "%ETC_DIR%/",
6+
"config/": "%CONFIG_DIR%/",
77
"src/": "%SRC_DIR%/"
88
},
99
"aliases": ["doctrine-migrations", "migrations"]
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
22
"copy-from-recipe": {
3-
"etc/": "%ETC_DIR%/"
3+
"config/": "%CONFIG_DIR%/"
44
}
55
}

javiereguiluz/easyadmin-bundle/1.16/manifest.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"JavierEguiluz\\Bundle\\EasyAdminBundle\\EasyAdminBundle": ["all"]
44
},
55
"copy-from-recipe": {
6-
"etc/": "%ETC_DIR%/"
6+
"config/": "%CONFIG_DIR%/"
77
},
88
"aliases": ["admin-gen", "admin-generator", "admin"]
99
}

lexik/jwt-authentication-bundle/2.3/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ generate-jwt-keys:
33
ifndef OPENSSL_BIN
44
$(error "Unable to generate keys (needs OpenSSL)")
55
endif
6-
mkdir -p etc/jwt
6+
mkdir -p config/jwt
77
openssl genrsa -passout pass:${JWT_PASSPHRASE} -out ${JWT_PRIVATE_KEY_PATH} -aes256 4096
88
openssl rsa -passin pass:${JWT_PASSPHRASE} -pubout -in ${JWT_PRIVATE_KEY_PATH} -out ${JWT_PUBLIC_KEY_PATH}
99
@echo "\033[32mRSA key pair successfully generated\033[39m"

lexik/jwt-authentication-bundle/2.3/manifest.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,13 @@
33
"Lexik\\Bundle\\JWTAuthenticationBundle\\LexikJWTAuthenticationBundle": ["all"]
44
},
55
"copy-from-recipe": {
6-
"etc/": "%ETC_DIR%"
6+
"config/": "%CONFIG_DIR%"
77
},
88
"aliases": ["jwt-auth"],
99
"env": {
1010
"#1": "Key paths should be relative to the project directory",
11-
"JWT_PRIVATE_KEY_PATH": "%ETC_DIR%/jwt/private.pem",
12-
"JWT_PUBLIC_KEY_PATH": "%ETC_DIR%/jwt/public.pem",
11+
"JWT_PRIVATE_KEY_PATH": "%CONFIG_DIR%/jwt/private.pem",
12+
"JWT_PUBLIC_KEY_PATH": "%CONFIG_DIR%/jwt/public.pem",
1313
"JWT_PASSPHRASE": "%generate(secret)%"
1414
}
1515
}

sensio/framework-extra-bundle/3.0/manifest.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,6 @@
33
"Sensio\\Bundle\\FrameworkExtraBundle\\SensioFrameworkExtraBundle": ["all"]
44
},
55
"copy-from-recipe": {
6-
"etc/": "%ETC_DIR%/"
6+
"config/": "%CONFIG_DIR%/"
77
}
88
}

sensiolabs/security-checker/4.0/manifest.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"copy-from-recipe": {
3-
"etc/": "%ETC_DIR%/"
3+
"config/": "%CONFIG_DIR%/"
44
},
55
"composer-scripts": {
66
"security-checker security:check": "script"

symfony/framework-bundle/3.3/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ serve_as_php:
2121
@printf "\033[32;49mServer listening on http://127.0.0.1:8000\033[39m\n";
2222
@printf "Quit the server with CTRL-C.\n"
2323
@printf "Run \033[32mcomposer require symfony/web-server-bundle\033[39m for a better web server\n"
24-
php -S 127.0.0.1:8000 -t web
24+
php -S 127.0.0.1:8000 -t public
2525

2626
serve:
2727
@${MAKE} serve_as_sf

symfony/framework-bundle/3.3/manifest.json

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,13 @@
33
"Symfony\\Bundle\\FrameworkBundle\\FrameworkBundle": ["all"]
44
},
55
"copy-from-recipe": {
6-
"etc/": "%ETC_DIR%/",
7-
"src/": "%SRC_DIR%/",
8-
"web/": "%WEB_DIR%/"
6+
"config/": "%CONFIG_DIR%/",
7+
"public/": "%PUBLIC_DIR%/",
8+
"src/": "%SRC_DIR%/"
99
},
1010
"composer-scripts": {
1111
"make cache-warmup": "script",
12-
"assets:install --symlink --relative %WEB_DIR%": "symfony-cmd"
12+
"assets:install --symlink --relative %PUBLIC_DIR%": "symfony-cmd"
1313
},
1414
"env": {
1515
"APP_ENV": "dev",
@@ -18,8 +18,8 @@
1818
},
1919
"gitignore": [
2020
".env",
21+
"/public/bundles/",
2122
"/var/",
22-
"/vendor/",
23-
"/web/bundles/"
23+
"/vendor/"
2424
]
2525
}

symfony/framework-bundle/3.3/src/Kernel.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ public function getLogDir(): string
2929

3030
public function registerBundles(): iterable
3131
{
32-
$contents = require dirname(__DIR__).'/etc/bundles.php';
32+
$contents = require dirname(__DIR__).'/config/bundles.php';
3333
foreach ($contents as $class => $envs) {
3434
if (isset($envs['all']) || isset($envs[$this->environment])) {
3535
yield new $class();
@@ -39,7 +39,7 @@ public function registerBundles(): iterable
3939

4040
protected function configureContainer(ContainerBuilder $container, LoaderInterface $loader): void
4141
{
42-
$confDir = dirname(__DIR__).'/etc';
42+
$confDir = dirname(__DIR__).'/config';
4343
$loader->load($confDir.'/packages/*'.self::CONFIG_EXTS, 'glob');
4444
if (is_dir($confDir.'/packages/'.$this->environment)) {
4545
$loader->load($confDir.'/packages/'.$this->environment.'/**/*'.self::CONFIG_EXTS, 'glob');
@@ -49,7 +49,7 @@ protected function configureContainer(ContainerBuilder $container, LoaderInterfa
4949

5050
protected function configureRoutes(RouteCollectionBuilder $routes): void
5151
{
52-
$confDir = dirname(__DIR__).'/etc';
52+
$confDir = dirname(__DIR__).'/config';
5353
if (is_dir($confDir.'/routing/')) {
5454
$routes->import($confDir.'/routing/*'.self::CONFIG_EXTS, '/', 'glob');
5555
}

symfony/monolog-bundle/3.1/manifest.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"Symfony\\Bundle\\MonologBundle\\MonologBundle": ["all"]
44
},
55
"copy-from-recipe": {
6-
"etc/": "%ETC_DIR%/"
6+
"config/": "%CONFIG_DIR%/"
77
},
88
"aliases": ["log", "logger", "logging", "logs", "monolog"]
99
}

symfony/requirements-checker/1.0/manifest.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"copy-from-package": {
33
"bin/check.php": "%BIN_DIR%/check.php",
4-
"web/check.php": "%WEB_DIR%/check.php"
4+
"public/check.php": "%PUBLIC_DIR%/check.php"
55
},
66
"composer-scripts": {
77
"%BIN_DIR%/check.php": "php-script"

symfony/routing/3.3/manifest.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"copy-from-recipe": {
3-
"etc/": "%ETC_DIR%/"
3+
"config/": "%CONFIG_DIR%/"
44
},
55
"aliases": ["router"]
66
}

symfony/security-bundle/3.3/manifest.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"Symfony\\Bundle\\SecurityBundle\\SecurityBundle": ["all"]
44
},
55
"copy-from-recipe": {
6-
"etc/": "%ETC_DIR%/"
6+
"config/": "%CONFIG_DIR%/"
77
},
88
"aliases": ["security"]
99
}

symfony/swiftmailer-bundle/2.5/manifest.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"Symfony\\Bundle\\SwiftmailerBundle\\SwiftmailerBundle": ["all"]
44
},
55
"copy-from-recipe": {
6-
"etc/": "%ETC_DIR%/"
6+
"config/": "%CONFIG_DIR%/"
77
},
88
"env": {
99
"#1": "For Gmail as a transport, use: \"gmail://username:password@localhost\"",

symfony/translation/3.3/manifest.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"copy-from-recipe": {
3-
"etc/": "%ETC_DIR%/",
3+
"config/": "%CONFIG_DIR%/",
44
"translations/": "translations/"
55
},
66
"container": {

symfony/twig-bundle/3.3/manifest.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"Symfony\\Bundle\\TwigBundle\\TwigBundle": ["all"]
44
},
55
"copy-from-recipe": {
6-
"etc/": "%ETC_DIR%/",
6+
"config/": "%CONFIG_DIR%/",
77
"templates/": "templates/"
88
},
99
"aliases": ["twig", "template", "templates", "templating"]

symfony/web-profiler-bundle/3.3/manifest.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,6 @@
33
"Symfony\\Bundle\\WebProfilerBundle\\WebProfilerBundle": ["dev", "test"]
44
},
55
"copy-from-recipe": {
6-
"etc/": "%ETC_DIR%/"
6+
"config/": "%CONFIG_DIR%/"
77
}
88
}

0 commit comments

Comments
 (0)