forked from symfony/demo
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
368 changed files
with
25,470 additions
and
27,921 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
; top-most EditorConfig file | ||
root = true | ||
|
||
; Unix-style newlines | ||
[*] | ||
end_of_line = LF | ||
|
||
[*.php] | ||
indent_style = space | ||
indent_size = 4 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
# This file is a "template" of which env vars needs to be defined in your configuration or in an .env file | ||
# Set variables here that may be different on each deployment target of the app, e.g. development, staging, production. | ||
# https://symfony.com/doc/current/best_practices/configuration.html#infrastructure-related-configuration | ||
|
||
###> symfony/framework-bundle ### | ||
APP_ENV=dev | ||
APP_DEBUG=1 | ||
APP_SECRET=67d829bf61dc5f87a73fd814e2c9f629 | ||
###< symfony/framework-bundle ### | ||
|
||
###> doctrine/doctrine-bundle ### | ||
# Format described at http://docs.doctrine-project.org/projects/doctrine-dbal/en/latest/reference/configuration.html#connecting-using-a-url | ||
# For a sqlite database, use: "sqlite:///%kernel.project_dir%/var/data.db" | ||
# Set "serverVersion" to your server version to avoid edge-case exceptions and extra database calls | ||
DATABASE_URL=sqlite:///%kernel.project_dir%/var/data/blog.sqlite | ||
###< doctrine/doctrine-bundle ### | ||
|
||
###> symfony/swiftmailer-bundle ### | ||
# For Gmail as a transport, use: "gmail://username:password@localhost" | ||
# For a generic SMTP server, use: "smtp://localhost:25?encryption=&auth_mode=" | ||
# Delivery is disabled by default via "null://localhost" | ||
MAILER_URL=null://localhost | ||
###< symfony/swiftmailer-bundle ### |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,36 @@ | ||
/app/bootstrap.php.cache | ||
/app/cache/* | ||
/app/logs/* | ||
!app/cache/.gitkeep | ||
!app/logs/.gitkeep | ||
/build/ | ||
/node_modules/ | ||
/var/* | ||
!/var/cache | ||
/var/cache/* | ||
!var/cache/.gitkeep | ||
!/var/data | ||
!/var/log | ||
/var/log/* | ||
!var/log/.gitkeep | ||
!/var/sessions | ||
/var/sessions/* | ||
!var/sessions/.gitkeep | ||
!var/SymfonyRequirements.php | ||
/public/build/fonts/glyphicons-* | ||
/public/build/images/glyphicons-* | ||
|
||
###> symfony/framework-bundle ### | ||
.env | ||
/public/bundles/ | ||
/var/ | ||
/vendor/ | ||
/bin/ | ||
/composer.phar | ||
###< symfony/framework-bundle ### | ||
|
||
###> symfony/phpunit-bridge ### | ||
/phpunit.xml | ||
###< symfony/phpunit-bridge ### | ||
|
||
###> symfony/web-server-bundle ### | ||
.web-server-pid | ||
###< symfony/web-server-bundle ### | ||
|
||
###> friendsofphp/php-cs-fixer ### | ||
.php_cs | ||
.php_cs.cache | ||
###< friendsofphp/php-cs-fixer ### |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
<?php | ||
|
||
$fileHeaderComment = <<<COMMENT | ||
This file is part of the Symfony package. | ||
(c) Fabien Potencier <fabien@symfony.com> | ||
For the full copyright and license information, please view the LICENSE | ||
file that was distributed with this source code. | ||
COMMENT; | ||
|
||
$finder = PhpCsFixer\Finder::create() | ||
->in(__DIR__) | ||
->exclude('config') | ||
->exclude('var') | ||
->exclude('public/bundles') | ||
->exclude('public/build') | ||
; | ||
|
||
return PhpCsFixer\Config::create() | ||
->setRiskyAllowed(true) | ||
->setRules([ | ||
'@Symfony' => true, | ||
'@Symfony:risky' => true, | ||
'array_syntax' => ['syntax' => 'short'], | ||
'header_comment' => ['header' => $fileHeaderComment, 'separate' => 'both'], | ||
'linebreak_after_opening_tag' => true, | ||
'mb_str_functions' => true, | ||
'no_php4_constructor' => true, | ||
'no_unreachable_default_argument_value' => true, | ||
'no_useless_else' => true, | ||
'no_useless_return' => true, | ||
'ordered_imports' => true, | ||
'php_unit_strict' => true, | ||
'phpdoc_order' => true, | ||
'semicolon_after_instruction' => true, | ||
'strict_comparison' => true, | ||
'strict_param' => true, | ||
]) | ||
->setFinder($finder) | ||
->setCacheFile(__DIR__.'/var/.php_cs.cache') | ||
; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
language: php | ||
sudo: false | ||
|
||
cache: | ||
directories: | ||
- $HOME/.composer/cache/files | ||
- $HOME/symfony-bridge/.phpunit | ||
|
||
env: | ||
global: | ||
- SYMFONY_PHPUNIT_DIR="$HOME/symfony-bridge/.phpunit" | ||
|
||
matrix: | ||
fast_finish: true | ||
include: | ||
- php: 7.1 | ||
|
||
before_install: | ||
- phpenv config-rm xdebug.ini | ||
- composer self-update | ||
|
||
install: | ||
- composer install | ||
- ./vendor/bin/simple-phpunit install | ||
|
||
script: | ||
- ./vendor/bin/simple-phpunit | ||
# this checks that the source code follows the Symfony Code Syntax rules | ||
- ./vendor/bin/php-cs-fixer fix --diff --dry-run -v | ||
# this checks that the YAML config files contain no syntax errors | ||
- ./bin/console lint:yaml config | ||
# this checks that the Twig template files contain no syntax errors | ||
- ./bin/console lint:twig templates | ||
# this checks that the XLIFF translations contain no syntax errors | ||
- ./bin/console lint:xliff translations | ||
# this checks that the application doesn't use dependencies with known security vulnerabilities | ||
- ./bin/console security:check --end-point=http://security.sensiolabs.org/check_lock | ||
# this checks that the composer.json and composer.lock files are valid | ||
- composer validate --strict |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
{ | ||
"name": "Symfony Demo Application", | ||
"description": "The official demo application for the Symfony framework.", | ||
"keywords": [ | ||
"php", | ||
"symfony" | ||
], | ||
"website": "https://symfony.com/download", | ||
"repository": "https://github.com/symfony/symfony-demo", | ||
"logo": "https://symfony.com/images/v5/pictos/demoapp.svg?v=4", | ||
"success_url": "/", | ||
"scripts": { | ||
"postdeploy": "php bin/console doctrine:schema:create && php bin/console doctrine:fixtures:load -n", | ||
"test-setup": "php bin/console doctrine:schema:create && php bin/console doctrine:fixtures:load -n", | ||
"test": "phpunit" | ||
}, | ||
"env": { | ||
"APP_ENV": { | ||
"value": "prod", | ||
"description": "If you want to use the Symfony `dev` environment in the deployed application, you must move the necessary dependencies (like SensioGeneratorBundle) from `require-dev` to `require`. This will introduce security issues because development tools like the WebProfiler reveal sensitive information." | ||
}, | ||
"APP_DEBUG": { | ||
"value": "0" | ||
}, | ||
"APP_SECRET": { | ||
"description": "Extra entropy for %kernel.secret%; used for CSRF tokens, cookies and signed URLs.", | ||
"generator": "secret" | ||
}, | ||
"MAILER_URL": { | ||
"value": "null://localhost", | ||
"description": "A DSN-like configuration string for the mail server. See https://symfony.com/doc/current/reference/configuration/swiftmailer.html#url" | ||
}, | ||
"SYMFONY_LOG": "php://stderr" | ||
}, | ||
"addons": [ | ||
"heroku-postgresql" | ||
], | ||
"image": "heroku/php" | ||
} |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.