-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Updated the application to use Symfony Flex #617
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Closed
Closed
Changes from all commits
Commits
Show all changes
50 commits
Select commit
Hold shift + click to select a range
3db10d6
Moved templates
javiereguiluz abee439
Removed .htaccess files
javiereguiluz 2c82b5d
Removed requirement checkers
javiereguiluz 4c695da
Updated front controllers
javiereguiluz 2feb362
Updated the console script
javiereguiluz 57ea352
Renamed web/ to public/
javiereguiluz 22dc5b9
Removed bundles
javiereguiluz 2d9d4b1
Updated tests
javiereguiluz 7567850
Moved app/Resources/translations/ to translations/
javiereguiluz e017807
Moved app/Resources/*Bundle/ to src/Resources/*Bundle/
javiereguiluz 5b8f5c6
Moved the config from app/ to config/
javiereguiluz df0a471
Moved app/AppKernel.php to src/Kernel.php
javiereguiluz dfbd0a6
Removed app/AppCache.php
javiereguiluz d375c18
Added the Makefile
javiereguiluz 10f825c
Updated PHPUnit config
javiereguiluz c2009ff
Updated dependencies and added symfony/flex
javiereguiluz ac89469
Added twig/extensions dependency
javiereguiluz 0c99b95
Restored the app.yaml file created by Flex
javiereguiluz f7960d0
Added symfony/expression-language needed by @Security annotation
javiereguiluz 3f385f9
Moved the template that displays the source code
javiereguiluz 2840ee6
Removed a duplicated parameter
javiereguiluz c48e35a
Renamed the remaining AppBundle to App
javiereguiluz ee01429
Recreated the database
javiereguiluz 32650bc
Updated the .gitignore contents
javiereguiluz 1ef708f
Fixed the name of the main firewall in the test security.yaml
javiereguiluz 14d350e
Removed some unneeded config options
javiereguiluz 550dddc
Renamed EventListener/ to EventSubscriber/
javiereguiluz 1095de8
Fixed the controller reference in Twig's controller() function
javiereguiluz 80ecbe0
Fixed tests
javiereguiluz c3c902b
Run Travis CI tests only in PHP 7.1
javiereguiluz c574cb3
Fixed some Travis CI issues
javiereguiluz e8d0b8a
Added symfony/templating to avoid an error in LogoutUrlHelper
javiereguiluz 764c3b2
Made config more explicit
javiereguiluz 78e3136
Move VarDumper to dev deps
javiereguiluz 3d1bbb9
Fix Travis CI issues
javiereguiluz 6ba282e
Fixed the Travis checks
javiereguiluz 997f384
Added the security:checker dependency
javiereguiluz 96863e6
Committed a missing file
javiereguiluz 116734b
Removed the commands to debug Travis
javiereguiluz 8fb0223
Updated the config for Windows tests
javiereguiluz a018337
Used a namespace in the security config file
javiereguiluz ee12694
Restored a command needed for Travis
javiereguiluz c1bb1d2
Allow to install community recipes by default
javiereguiluz fe27d06
Replaced web/ by public/ in PHP CS Fixer config
javiereguiluz 82c7c54
Removed an unnecessary "arguments" option
javiereguiluz d55f55f
Removed the app.yaml no longer used by Symfony Flex
javiereguiluz 5ffff29
Removed the symfony/templating package
javiereguiluz 4ac7d82
Updated dependencies to Symfony 3.3.8
javiereguiluz bb8e0f8
Committed the .dist version of the .env file
javiereguiluz 5d7380e
Fixed .env file syntax
javiereguiluz File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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:///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 hidden or 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 hidden or 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 hidden or 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 hidden or 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,46 @@ | ||
ifndef APP_ENV | ||
include .env | ||
endif | ||
|
||
###> symfony/framework-bundle ### | ||
CONSOLE := $(shell which bin/console) | ||
sf_console: | ||
ifndef CONSOLE | ||
@printf "Run \033[32mcomposer require cli\033[39m to install the Symfony console.\n" | ||
endif | ||
|
||
cache-clear: | ||
ifdef CONSOLE | ||
@$(CONSOLE) cache:clear --no-warmup | ||
else | ||
@rm -rf var/cache/* | ||
endif | ||
.PHONY: cache-clear | ||
|
||
cache-warmup: cache-clear | ||
ifdef CONSOLE | ||
@$(CONSOLE) cache:warmup | ||
else | ||
@printf "cannot warmup the cache (needs symfony/console)\n" | ||
endif | ||
.PHONY: cache-warmup | ||
|
||
serve_as_sf: sf_console | ||
ifndef CONSOLE | ||
@${MAKE} serve_as_php | ||
endif | ||
@$(CONSOLE) | grep server:start > /dev/null || ${MAKE} serve_as_php | ||
@$(CONSOLE) server:start | ||
|
||
@printf "Quit the server with \033[32;49mbin/console server:stop.\033[39m\n" | ||
|
||
serve_as_php: | ||
@printf "\033[32;49mServer listening on http://127.0.0.1:8000\033[39m\n"; | ||
@printf "Quit the server with CTRL-C.\n" | ||
@printf "Run \033[32mcomposer require symfony/web-server-bundle\033[39m for a better web server\n" | ||
php -S 127.0.0.1:8000 -t public | ||
|
||
serve: | ||
@${MAKE} serve_as_sf | ||
.PHONY: sf_console serve serve_as_sf serve_as_php | ||
###< symfony/framework-bundle ### |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
public/css
,public/fonts
andpublic/js
=>public/build