Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update to SF 3.3 and setup Symfony Flex
- Loading branch information
Showing
34 changed files
with
2,936 additions
and
1,338 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,13 @@ | ||
# 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 | ||
|
||
SLACK_CLIENT_ID= | ||
SLACK_CLIENT_SECRET= | ||
REDIS_URL= | ||
|
||
###> symfony/framework-bundle ### | ||
APP_ENV=dev | ||
APP_DEBUG=1 | ||
APP_SECRET=98d174d70d76f824a2a601b715cbc53b | ||
###< symfony/framework-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,4 +1,9 @@ | ||
###> symfony/framework-bundle ### | ||
.env | ||
/var/ | ||
/vendor/ | ||
/var/* | ||
/bin/php-cs-fixer | ||
/bin/phpunit | ||
/web/bundles/ | ||
###< symfony/framework-bundle ### | ||
###> symfony/phpunit-bridge ### | ||
/phpunit.xml | ||
###< symfony/phpunit-bridge ### |
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 +0,0 @@ | ||
web/index_dev.php | ||
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,34 @@ | ||
ifndef APP_ENV | ||
include .env | ||
endif | ||
|
||
###> symfony/framework-bundle ### | ||
cache-clear: | ||
@test -f bin/console && bin/console cache:clear --no-warmup || rm -rf var/cache/* | ||
.PHONY: cache-clear | ||
|
||
cache-warmup: cache-clear | ||
@test -f bin/console && bin/console cache:warmup || echo "cannot warmup the cache (needs symfony/console)" | ||
.PHONY: cache-warmup | ||
|
||
CONSOLE=bin/console | ||
sf_console: | ||
@test -f $(CONSOLE) || printf "Run \033[32mcomposer require cli\033[39m to install the Symfony console.\n" | ||
@exit | ||
|
||
serve_as_sf: sf_console | ||
@test -f $(CONSOLE) && $(CONSOLE)|grep server:start > /dev/null || ${MAKE} serve_as_php | ||
@$(CONSOLE) server:start || exit 1 | ||
|
||
@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 web | ||
|
||
serve: | ||
@${MAKE} serve_as_sf | ||
.PHONY: sf_console serve serve_as_sf serve_as_php | ||
###< symfony/framework-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
This file was deleted.
Oops, something went wrong.
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
Oops, something went wrong.