forked from symfony/demo
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Updated the application to use Symfony Flex
- Loading branch information
1 parent
1b77c9e
commit 372ddae
Showing
195 changed files
with
3,883 additions
and
2,213 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,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 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,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.