mirror of
https://github.com/bodyrep/bodyrep-symphony2.git
synced 2026-01-26 23:21:44 +00:00
Initial symfony commit
This commit is contained in:
58
sandbox/app/config/config.yml
Normal file
58
sandbox/app/config/config.yml
Normal file
@@ -0,0 +1,58 @@
|
||||
imports:
|
||||
- { resource: parameters.yml }
|
||||
- { resource: security.yml }
|
||||
|
||||
framework:
|
||||
#esi: ~
|
||||
#translator: { fallback: %locale% }
|
||||
secret: %secret%
|
||||
router:
|
||||
resource: "%kernel.root_dir%/config/routing.yml"
|
||||
strict_requirements: %kernel.debug%
|
||||
form: true
|
||||
csrf_protection: true
|
||||
validation: { enable_annotations: true }
|
||||
templating: { engines: ['twig'] } #assets_version: SomeVersionScheme
|
||||
default_locale: %locale%
|
||||
trust_proxy_headers: false # Whether or not the Request object should trust proxy headers (X_FORWARDED_FOR/HTTP_CLIENT_IP)
|
||||
session: ~
|
||||
|
||||
# Twig Configuration
|
||||
twig:
|
||||
debug: %kernel.debug%
|
||||
strict_variables: %kernel.debug%
|
||||
|
||||
# Assetic Configuration
|
||||
assetic:
|
||||
debug: %kernel.debug%
|
||||
use_controller: false
|
||||
bundles: [ ]
|
||||
#java: /usr/bin/java
|
||||
filters:
|
||||
cssrewrite: ~
|
||||
#closure:
|
||||
# jar: %kernel.root_dir%/Resources/java/compiler.jar
|
||||
#yui_css:
|
||||
# jar: %kernel.root_dir%/Resources/java/yuicompressor-2.4.7.jar
|
||||
|
||||
# Doctrine Configuration
|
||||
doctrine:
|
||||
dbal:
|
||||
driver: pdo_pgsql
|
||||
host: localhost
|
||||
dbname: bodyrep
|
||||
user: goo
|
||||
password:
|
||||
charset: UTF8
|
||||
|
||||
orm:
|
||||
auto_generate_proxy_classes: %kernel.debug%
|
||||
auto_mapping: true
|
||||
|
||||
# Swiftmailer Configuration
|
||||
swiftmailer:
|
||||
transport: %mailer_transport%
|
||||
host: %mailer_host%
|
||||
username: %mailer_user%
|
||||
password: %mailer_password%
|
||||
spool: { type: memory }
|
||||
26
sandbox/app/config/config_dev.yml
Normal file
26
sandbox/app/config/config_dev.yml
Normal file
@@ -0,0 +1,26 @@
|
||||
imports:
|
||||
- { resource: config.yml }
|
||||
|
||||
framework:
|
||||
router: { resource: "%kernel.root_dir%/config/routing_dev.yml" }
|
||||
profiler: { only_exceptions: false }
|
||||
|
||||
web_profiler:
|
||||
toolbar: true
|
||||
intercept_redirects: false
|
||||
|
||||
monolog:
|
||||
handlers:
|
||||
main:
|
||||
type: stream
|
||||
path: %kernel.logs_dir%/%kernel.environment%.log
|
||||
level: debug
|
||||
firephp:
|
||||
type: firephp
|
||||
level: info
|
||||
|
||||
assetic:
|
||||
use_controller: true
|
||||
|
||||
#swiftmailer:
|
||||
# delivery_address: me@example.com
|
||||
19
sandbox/app/config/config_prod.yml
Normal file
19
sandbox/app/config/config_prod.yml
Normal file
@@ -0,0 +1,19 @@
|
||||
imports:
|
||||
- { resource: config.yml }
|
||||
|
||||
#doctrine:
|
||||
# orm:
|
||||
# metadata_cache_driver: apc
|
||||
# result_cache_driver: apc
|
||||
# query_cache_driver: apc
|
||||
|
||||
monolog:
|
||||
handlers:
|
||||
main:
|
||||
type: fingers_crossed
|
||||
action_level: error
|
||||
handler: nested
|
||||
nested:
|
||||
type: stream
|
||||
path: %kernel.logs_dir%/%kernel.environment%.log
|
||||
level: debug
|
||||
14
sandbox/app/config/config_test.yml
Normal file
14
sandbox/app/config/config_test.yml
Normal file
@@ -0,0 +1,14 @@
|
||||
imports:
|
||||
- { resource: config_dev.yml }
|
||||
|
||||
framework:
|
||||
test: ~
|
||||
session:
|
||||
storage_id: session.storage.mock_file
|
||||
|
||||
web_profiler:
|
||||
toolbar: false
|
||||
intercept_redirects: false
|
||||
|
||||
swiftmailer:
|
||||
disable_delivery: true
|
||||
15
sandbox/app/config/parameters.yml
Normal file
15
sandbox/app/config/parameters.yml
Normal file
@@ -0,0 +1,15 @@
|
||||
parameters:
|
||||
database_driver: pdo_mysql
|
||||
database_host: localhost
|
||||
database_port: ~
|
||||
database_name: symfony
|
||||
database_user: root
|
||||
database_password: ~
|
||||
|
||||
mailer_transport: smtp
|
||||
mailer_host: localhost
|
||||
mailer_user: ~
|
||||
mailer_password: ~
|
||||
|
||||
locale: en
|
||||
secret: ThisTokenIsNotSoSecretChangeIt
|
||||
13
sandbox/app/config/routing.yml
Normal file
13
sandbox/app/config/routing.yml
Normal file
@@ -0,0 +1,13 @@
|
||||
_landing:
|
||||
resource: "@BodyRep/Controller/LandingController.php"
|
||||
type: annotation
|
||||
prefix: /
|
||||
|
||||
_profile:
|
||||
pattern: /{username}
|
||||
defaults: { _controller: BodyRep:Profile:index }
|
||||
|
||||
_member:
|
||||
resource: "@BodyRep/Controller/MemberController.php"
|
||||
type: annotation
|
||||
prefix: /m
|
||||
14
sandbox/app/config/routing_dev.yml
Normal file
14
sandbox/app/config/routing_dev.yml
Normal file
@@ -0,0 +1,14 @@
|
||||
_wdt:
|
||||
resource: "@WebProfilerBundle/Resources/config/routing/wdt.xml"
|
||||
prefix: /_wdt
|
||||
|
||||
_profiler:
|
||||
resource: "@WebProfilerBundle/Resources/config/routing/profiler.xml"
|
||||
prefix: /_profiler
|
||||
|
||||
_configurator:
|
||||
resource: "@SensioDistributionBundle/Resources/config/routing/webconfigurator.xml"
|
||||
prefix: /_configurator
|
||||
|
||||
_main:
|
||||
resource: routing.yml
|
||||
49
sandbox/app/config/security.yml
Normal file
49
sandbox/app/config/security.yml
Normal file
@@ -0,0 +1,49 @@
|
||||
jms_security_extra:
|
||||
secure_all_services: false
|
||||
expressions: true
|
||||
|
||||
security:
|
||||
encoders:
|
||||
Symfony\Component\Security\Core\User\User: plaintext
|
||||
|
||||
role_hierarchy:
|
||||
ROLE_ADMIN: ROLE_USER
|
||||
ROLE_SUPER_ADMIN: [ROLE_USER, ROLE_ADMIN, ROLE_ALLOWED_TO_SWITCH]
|
||||
|
||||
providers:
|
||||
in_memory:
|
||||
memory:
|
||||
users:
|
||||
alexzb: { password: d559ko54, roles: [ 'ROLE_ADMIN' ] }
|
||||
alexl: { password: d559ko54, roles: [ 'ROLE_ADMIN' ] }
|
||||
ghuntley: { password: d559ko54, roles: [ 'ROLE_ADMIN' ] }
|
||||
|
||||
firewalls:
|
||||
dev:
|
||||
pattern: ^/(_(profiler|wdt)|css|images|js)/
|
||||
security: false
|
||||
|
||||
login:
|
||||
pattern: ^/m/login$
|
||||
security: false
|
||||
|
||||
landing:
|
||||
pattern: ^/$
|
||||
security: false
|
||||
|
||||
contact:
|
||||
pattern: ^/contact$
|
||||
security: false
|
||||
|
||||
secured_area:
|
||||
pattern: ^/
|
||||
form_login:
|
||||
check_path: /m/login_check
|
||||
login_path: /m/login
|
||||
logout:
|
||||
path: /m/logout
|
||||
target: /
|
||||
|
||||
access_control:
|
||||
#- { path: ^/login, roles: IS_AUTHENTICATED_ANONYMOUSLY, requires_channel: https }
|
||||
#- { path: ^/_internal/secure, roles: IS_AUTHENTICATED_ANONYMOUSLY, ip: 127.0.0.1 }
|
||||
Reference in New Issue
Block a user