Skip to content

Commit

Permalink
Migrate to Symfony 4
Browse files Browse the repository at this point in the history
  • Loading branch information
andchir committed Oct 20, 2018
1 parent a8ddab9 commit 7aad7f9
Show file tree
Hide file tree
Showing 128 changed files with 4,294 additions and 5,391 deletions.
29 changes: 29 additions & 0 deletions .env
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
# This file is a "template" of which env vars need to be defined for your application
# Copy this file to .env file for development, create environment variables when deploying to production
# https://symfony.com/doc/current/best_practices/configuration.html#infrastructure-related-configuration

###> symfony/framework-bundle ###
APP_ENV=prod
APP_SECRET=55c2253f1a44dbb68965b8ea54b0572e
#TRUSTED_PROXIES=127.0.0.1,127.0.0.2
#TRUSTED_HOSTS=localhost,example.com
###< 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 an SQLite database, use: "sqlite:///%kernel.project_dir%/var/data.db"
# Configure your db driver and server_version in config/packages/doctrine.yaml
DATABASE_URL=mysql://db_user:db_password@127.0.0.1:3306/db_name
###< 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 ###

###> doctrine/mongodb-odm-bundle ###
MONGODB_URL=mongodb://localhost:27017
MONGODB_DB=symfony
###< doctrine/mongodb-odm-bundle ###
29 changes: 29 additions & 0 deletions .env.dist
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
# This file is a "template" of which env vars need to be defined for your application
# Copy this file to .env file for development, create environment variables when deploying to production
# https://symfony.com/doc/current/best_practices/configuration.html#infrastructure-related-configuration

###> symfony/framework-bundle ###
APP_ENV=dev
APP_SECRET=55c2253f1a44dbb68965b8ea54b0572e
#TRUSTED_PROXIES=127.0.0.1,127.0.0.2
#TRUSTED_HOSTS=localhost,example.com
###< 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 an SQLite database, use: "sqlite:///%kernel.project_dir%/var/data.db"
# Configure your db driver and server_version in config/packages/doctrine.yaml
DATABASE_URL=mysql://db_user:db_password@127.0.0.1:3306/db_name
###< 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 ###

###> doctrine/mongodb-odm-bundle ###
MONGODB_URL=mongodb://localhost:27017
MONGODB_DB=symfony
###< doctrine/mongodb-odm-bundle ###
46 changes: 20 additions & 26 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,27 +1,21 @@
/.idea/
/build/
/phpunit.xml
/var/*
!/var/cache
/var/cache/*
!var/cache/.gitkeep
!/var/logs
/var/logs/*
!var/logs/.gitkeep
!/var/sessions
/var/sessions/*
!var/sessions/.gitkeep
!var/SymfonyRequirements.php

###> symfony/framework-bundle ###
/var/
/vendor/
/web/node_modules/
/web/lib/
/web/shk-app/node_modules/
/web/shk-app/bundle-dev/
/web/uploads/
/web/media/
/app/config/parameters.yml
/src/AppBundle/Document/**/*.php~
/app/config/settings.yml
/docs/wiki/
/node_modules/
/docs/api/
###< symfony/framework-bundle ###

###> symfony/phpunit-bridge ###
.phpunit
/phpunit.xml
###< symfony/phpunit-bridge ###

###> symfony/web-server-bundle ###
/.web-server-pid
###< symfony/web-server-bundle ###
/frontend/node_modules/
/public/node_modules/
/.idea

/public/media/cache/
/public/admin/bundle-dev/
/config/settings.yaml
7 changes: 0 additions & 7 deletions app/.htaccess

This file was deleted.

7 changes: 0 additions & 7 deletions app/AppCache.php

This file was deleted.

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

This file was deleted.

24 changes: 0 additions & 24 deletions app/Resources/config/doctrine/Category.mongodb.yml

This file was deleted.

21 changes: 0 additions & 21 deletions app/Resources/translations/messages.en.yml

This file was deleted.

134 changes: 0 additions & 134 deletions app/Resources/translations/messages.ru.yml

This file was deleted.

10 changes: 0 additions & 10 deletions app/Resources/translations/validators.en.yml

This file was deleted.

15 changes: 0 additions & 15 deletions app/Resources/translations/validators.ru.yml

This file was deleted.

Loading

0 comments on commit 7aad7f9

Please sign in to comment.