Skip to content

Commit 329e0a2

Browse files
committed
add example to git
1 parent 5d6b9d7 commit 329e0a2

30 files changed

+5003
-0
lines changed

symfony-example/.env

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
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+
# https://symfony.com/doc/current/configuration/secrets.html
13+
#
14+
# Run "composer dump-env prod" to compile .env files for production use (requires symfony/flex >=1.2).
15+
# https://symfony.com/doc/current/best_practices.html#use-environment-variables-for-infrastructure-configuration
16+
17+
###> symfony/framework-bundle ###
18+
APP_ENV=dev
19+
APP_SECRET=
20+
###< symfony/framework-bundle ###
21+
22+
###> doctrine/doctrine-bundle ###
23+
# Format described at https://www.doctrine-project.org/projects/doctrine-dbal/en/latest/reference/configuration.html#connecting-using-a-url
24+
# IMPORTANT: You MUST configure your server version, either here or in config/packages/doctrine.yaml
25+
#
26+
# DATABASE_URL="sqlite:///%kernel.project_dir%/var/data.db"
27+
# DATABASE_URL="mysql://app:!ChangeMe!@127.0.0.1:3306/app?serverVersion=8.0.32&charset=utf8mb4"
28+
# DATABASE_URL="mysql://app:!ChangeMe!@127.0.0.1:3306/app?serverVersion=10.11.2-MariaDB&charset=utf8mb4"
29+
DATABASE_URL="mysql://root:kausi@127.0.0.1:3306/bruf?serverVersion=8.4"
30+
###< doctrine/doctrine-bundle ###

symfony-example/.env.dev

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
2+
###> symfony/framework-bundle ###
3+
APP_SECRET=68ee41fa3a011804a6d9176f89804fda
4+
###< symfony/framework-bundle ###

symfony-example/.gitignore

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
2+
###> symfony/framework-bundle ###
3+
/.env.local
4+
/.env.local.php
5+
/.env.*.local
6+
/config/secrets/prod/prod.decrypt.private.php
7+
/public/bundles/
8+
/var/
9+
/vendor/
10+
###< symfony/framework-bundle ###

symfony-example/composer.json

Lines changed: 73 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,73 @@
1+
{
2+
"type": "project",
3+
"license": "proprietary",
4+
"minimum-stability": "stable",
5+
"prefer-stable": true,
6+
"require": {
7+
"php": ">=8.2",
8+
"ext-ctype": "*",
9+
"ext-iconv": "*",
10+
"ext-pdo_mysql": "*",
11+
"doctrine/dbal": "^4.2",
12+
"doctrine/doctrine-bundle": "^2.13",
13+
"doctrine/doctrine-migrations-bundle": "^3.4",
14+
"doctrine/orm": "^3.3",
15+
"symfony/console": "7.2.*",
16+
"symfony/dotenv": "7.2.*",
17+
"symfony/flex": "^2",
18+
"symfony/framework-bundle": "7.2.*",
19+
"symfony/runtime": "7.2.*",
20+
"symfony/uid": "7.2.*",
21+
"symfony/yaml": "7.2.*"
22+
},
23+
"config": {
24+
"allow-plugins": {
25+
"php-http/discovery": true,
26+
"symfony/flex": true,
27+
"symfony/runtime": true
28+
},
29+
"bump-after-update": true,
30+
"sort-packages": true
31+
},
32+
"autoload": {
33+
"psr-4": {
34+
"App\\": "src/"
35+
}
36+
},
37+
"autoload-dev": {
38+
"psr-4": {
39+
"App\\Tests\\": "tests/"
40+
}
41+
},
42+
"replace": {
43+
"symfony/polyfill-ctype": "*",
44+
"symfony/polyfill-iconv": "*",
45+
"symfony/polyfill-php72": "*",
46+
"symfony/polyfill-php73": "*",
47+
"symfony/polyfill-php74": "*",
48+
"symfony/polyfill-php80": "*",
49+
"symfony/polyfill-php81": "*",
50+
"symfony/polyfill-php82": "*"
51+
},
52+
"scripts": {
53+
"auto-scripts": {
54+
"cache:clear": "symfony-cmd",
55+
"assets:install %PUBLIC_DIR%": "symfony-cmd"
56+
},
57+
"post-install-cmd": [
58+
"@auto-scripts"
59+
],
60+
"post-update-cmd": [
61+
"@auto-scripts"
62+
]
63+
},
64+
"conflict": {
65+
"symfony/symfony": "*"
66+
},
67+
"extra": {
68+
"symfony": {
69+
"allow-contrib": false,
70+
"require": "7.2.*"
71+
}
72+
}
73+
}

0 commit comments

Comments
 (0)