Skip to content

Commit a8ad401

Browse files
committed
feature #85 update to Symfony 5.1 (IonBazan, weaverryan)
This PR was merged into the master branch. Discussion ---------- update to Symfony 5.1 This PR bumps all packages to most recent versions. Unused Symfony components have been dropped (like Security). Doctrine has been dropped too as it seems unused. @weaverryan please test it on your Github account when you have a while to check if it's working properly. Commits ------- 26d106b removing swiftmailer a1a7ad5 fixing a test bug where we need to clean off labels before trying 3a1a744 fixing a bug where subscribers would incorrectly mark something as unsupported 3759847 fix auth 678d40f update to Symfony 5.1
2 parents 34304e8 + 26d106b commit a8ad401

File tree

111 files changed

+4149
-4496
lines changed

Some content is hidden

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

111 files changed

+4149
-4496
lines changed

.env

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
# In all environments, the following files are loaded if they exist,
2+
# the latter taking precedence over the former:
3+
#
4+
# * .env contains default values for the environment variables needed by the app
5+
# * .env.local uncommitted file with local overrides
6+
# * .env.$APP_ENV committed environment-specific defaults
7+
# * .env.$APP_ENV.local uncommitted environment-specific overrides
8+
#
9+
# Real environment variables win over .env files.
10+
#
11+
# DO NOT DEFINE PRODUCTION SECRETS IN THIS FILE NOR IN ANY OTHER COMMITTED FILES.
12+
#
13+
# Run "composer dump-env prod" to compile .env files for production use (requires symfony/flex >=1.2).
14+
# https://symfony.com/doc/current/best_practices.html#use-environment-variables-for-infrastructure-configuration
15+
###> symfony/framework-bundle ###
16+
APP_ENV=dev
17+
APP_SECRET=5dd8ffca252d95e8b4fb5b2d15310e92
18+
#TRUSTED_PROXIES=127.0.0.0/8,10.0.0.0/8,172.16.0.0/12,192.168.0.0/16
19+
#TRUSTED_HOSTS='^(localhost|example\.com)$'
20+
###< symfony/framework-bundle ###
21+
22+
SYMFONY_DOCS_SECRET=XX
23+
24+
###> knplabs/github-api ###
25+
GITHUB_TOKEN=XXX
26+
###< knplabs/github-api ###

.env.test

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
# define your env variables for the test env here
2+
KERNEL_CLASS='App\Kernel'
3+
APP_SECRET='$ecretf0rt3st'
4+
SYMFONY_DEPRECATIONS_HELPER=999999
5+
PANTHER_APP_ENV=panther

.gitignore

Lines changed: 14 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,15 @@
1-
/app/bootstrap.php.cache
2-
/app/cache/*
3-
!app/cache/.gitkeep
4-
/app/config/parameters.yml
5-
/app/logs/*
6-
!app/logs/.gitkeep
7-
/app/phpunit.xml
8-
/bin/
9-
/composer.phar
1+
###> symfony/phpunit-bridge ###
2+
.phpunit
3+
.phpunit.result.cache
4+
/phpunit.xml
5+
###< symfony/phpunit-bridge ###
6+
7+
###> symfony/framework-bundle ###
8+
/.env.local
9+
/.env.local.php
10+
/.env.*.local
11+
/config/secrets/prod/prod.decrypt.private.php
12+
/public/bundles/
13+
/var/
1014
/vendor/
11-
/web/bundles/
15+
###< symfony/framework-bundle ###

.symfony.cloud.yaml

Lines changed: 6 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -6,44 +6,28 @@ runtime:
66
extensions:
77
- apcu
88
- mbstring
9-
109

1110
build:
1211
flavor: none
1312

1413
web:
1514
locations:
1615
"/":
17-
root: "web"
16+
root: "public"
1817
expires: 1h
19-
passthru: "/app.php"
18+
passthru: "/index.php"
2019

2120
disk: 2048
2221

2322
mounts:
24-
"app/cache": { source: local, source_path: "app/cache" }
25-
"app/logs": { source: local, source_path: "app/logs" }
23+
'/var': { source: local, source_path: var }
2624

2725
hooks:
2826
build: |
2927
set -x -e
3028
31-
# Remove the development front-controller if present
32-
(>&2 rm web/app_dev.php)
33-
34-
SYMFONY_ENV=prod composer install --prefer-dist --optimize-autoloader --classmap-authoritative --no-progress --no-ansi --no-interaction --no-dev
35-
(>&2 SYMFONY_ENV=prod app/console cache:clear --no-warmup)
36-
(>&2 SYMFONY_ENV=prod app/console cache:warmup)
37-
38-
# Keep the cache in a persistent directory
39-
# If your cache can be read-only, you can skip this step
40-
(>&2 mkdir -p tmp/cache && mv app/cache/prod tmp/cache/)
41-
29+
curl -s https://get.symfony.com/cloud/configurator | (>&2 bash)
30+
(>&2 symfony-build)
4231
deploy: |
4332
set -x -e
44-
45-
# "install" cache
46-
# If your cache can be read-only, you can skip these steps
47-
rm -rf app/cache/prod
48-
#cp -Rp tmp/bootstrap.php.cache app/bootstrap.php.cache
49-
cp -Rp tmp/cache/prod app/cache/
33+
(>&2 symfony-deploy)

app/.htaccess

Lines changed: 0 additions & 7 deletions
This file was deleted.

app/AppCache.php

Lines changed: 0 additions & 9 deletions
This file was deleted.

app/AppKernel.php

Lines changed: 0 additions & 36 deletions
This file was deleted.

app/Resources/views/base.html.twig

Lines changed: 0 additions & 15 deletions
This file was deleted.

0 commit comments

Comments
 (0)