Skip to content

Commit

Permalink
Merge pull request Sylius#9643 from pamil/symfony-flex
Browse files Browse the repository at this point in the history
Symfony 4 directory structure
  • Loading branch information
pamil committed Aug 20, 2018
2 parents 471b111 + b9fbf6c commit 2cf1602
Show file tree
Hide file tree
Showing 107 changed files with 627 additions and 871 deletions.
23 changes: 23 additions & 0 deletions .env.dist
@@ -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=EDITME
###< 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=mysql://root@127.0.0.1/sylius_${APP_ENV}
###< 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=smtp://localhost
###< symfony/swiftmailer-bundle ###
23 changes: 23 additions & 0 deletions .env.test.dist
@@ -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=test
APP_DEBUG=1
APP_SECRET=EDITME
###< 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=mysql://root@127.0.0.1/sylius_${APP_ENV}
###< 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 ###
23 changes: 23 additions & 0 deletions .env.test_cached.dist
@@ -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=test_cached
APP_DEBUG=0
APP_SECRET=EDITME
###< 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=mysql://root@127.0.0.1/sylius_${APP_ENV}
###< 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 ###
34 changes: 12 additions & 22 deletions .gitignore
@@ -1,31 +1,15 @@
/.php_cs.cache

/app/config/parameters.yml
/app/config/*.local.yml
/var/*
!/var/.gitkeep

/web/assets
/web/bundles
/web/css
/web/js
/web/media
/public/assets
/public/bundles
/public/css
/public/js
/public/media

/bin/*
!/bin/build-package
!/bin/build-packages
!/bin/clean-package
!/bin/clean-packages
!/bin/console
!/bin/fix-coding-standards
!/bin/install-package
!/bin/install-packages
!/bin/require-symfony-version
!/bin/symfony_requirements
!/bin/test-package
!/bin/test-packages
!/bin/validate-package
!/bin/validate-packages
/bin/symfony_requirements

/composer.lock
/vendor
Expand All @@ -38,3 +22,9 @@
/phpunit.xml
/phpspec.yml
/.web-server-pid

/.env
/.env.prod
/.env.staging
/.env.test
/.env.test_cached
3 changes: 3 additions & 0 deletions .travis.yml
Expand Up @@ -53,6 +53,9 @@ cache:
- $SYLIUS_CACHE_DIR

before_install:
- mv .env.test_cached.dist .env.test_cached
- set -a && source .env.test_cached && set +a

- etc/travis/run-suite before_install "${SYLIUS_SUITE}"

install:
Expand Down
18 changes: 0 additions & 18 deletions app/AppCache.php

This file was deleted.

38 changes: 0 additions & 38 deletions app/AppKernel.php

This file was deleted.

99 changes: 0 additions & 99 deletions app/TestAppKernel.php

This file was deleted.

74 changes: 0 additions & 74 deletions app/config/config.yml

This file was deleted.

30 changes: 0 additions & 30 deletions app/config/config_dev.yml

This file was deleted.

0 comments on commit 2cf1602

Please sign in to comment.