Initial commit with empty SF2 install; no Acme
Signed-off-by: Gergely POLONKAI (W00d5t0ck) <polesz@w00d5t0ck.info>
This commit is contained in:
60
app/config/config.yml
Normal file
60
app/config/config.yml
Normal file
@@ -0,0 +1,60 @@
|
||||
imports:
|
||||
- { resource: parameters.ini }
|
||||
- { resource: security.yml }
|
||||
|
||||
framework:
|
||||
#esi: ~
|
||||
#translator: { fallback: %locale% }
|
||||
secret: %secret%
|
||||
charset: UTF-8
|
||||
router: { resource: "%kernel.root_dir%/config/routing.yml" }
|
||||
form: true
|
||||
csrf_protection: true
|
||||
validation: { enable_annotations: true }
|
||||
templating: { engines: ['twig'] } #assets_version: SomeVersionScheme
|
||||
session:
|
||||
default_locale: %locale%
|
||||
auto_start: true
|
||||
|
||||
# Twig Configuration
|
||||
twig:
|
||||
debug: %kernel.debug%
|
||||
strict_variables: %kernel.debug%
|
||||
|
||||
# Assetic Configuration
|
||||
assetic:
|
||||
debug: %kernel.debug%
|
||||
use_controller: false
|
||||
# java: /usr/bin/java
|
||||
filters:
|
||||
cssrewrite: ~
|
||||
# closure:
|
||||
# jar: %kernel.root_dir%/java/compiler.jar
|
||||
# yui_css:
|
||||
# jar: %kernel.root_dir%/java/yuicompressor-2.4.2.jar
|
||||
|
||||
# Doctrine Configuration
|
||||
doctrine:
|
||||
dbal:
|
||||
driver: %database_driver%
|
||||
host: %database_host%
|
||||
port: %database_port%
|
||||
dbname: %database_name%
|
||||
user: %database_user%
|
||||
password: %database_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%
|
||||
|
||||
jms_security_extra:
|
||||
secure_controllers: true
|
||||
secure_all_services: false
|
23
app/config/config_dev.yml
Normal file
23
app/config/config_dev.yml
Normal file
@@ -0,0 +1,23 @@
|
||||
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
|
19
app/config/config_prod.yml
Normal file
19
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
app/config/config_test.yml
Normal file
14
app/config/config_test.yml
Normal file
@@ -0,0 +1,14 @@
|
||||
imports:
|
||||
- { resource: config_dev.yml }
|
||||
|
||||
framework:
|
||||
test: ~
|
||||
session:
|
||||
storage_id: session.storage.filesystem
|
||||
|
||||
web_profiler:
|
||||
toolbar: false
|
||||
intercept_redirects: false
|
||||
|
||||
swiftmailer:
|
||||
disable_delivery: true
|
19
app/config/parameters.ini
Normal file
19
app/config/parameters.ini
Normal file
@@ -0,0 +1,19 @@
|
||||
; These parameters can be imported into other config files
|
||||
; by enclosing the key with % (like %database_user%)
|
||||
; Comments start with ';', as in php.ini
|
||||
[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
|
4
app/config/routing.yml
Normal file
4
app/config/routing.yml
Normal file
@@ -0,0 +1,4 @@
|
||||
# Internal routing configuration to handle ESI
|
||||
#_internal:
|
||||
# resource: "@FrameworkBundle/Resources/config/routing/internal.xml"
|
||||
# prefix: /_internal
|
18
app/config/routing_dev.yml
Normal file
18
app/config/routing_dev.yml
Normal file
@@ -0,0 +1,18 @@
|
||||
_assetic:
|
||||
resource: .
|
||||
type: assetic
|
||||
|
||||
_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
|
38
app/config/security.yml
Normal file
38
app/config/security.yml
Normal file
@@ -0,0 +1,38 @@
|
||||
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:
|
||||
users:
|
||||
user: { password: userpass, roles: [ 'ROLE_USER' ] }
|
||||
admin: { password: adminpass, roles: [ 'ROLE_ADMIN' ] }
|
||||
|
||||
firewalls:
|
||||
dev:
|
||||
pattern: ^/(_(profiler|wdt)|css|images|js)/
|
||||
security: false
|
||||
|
||||
login:
|
||||
pattern: ^/demo/secured/login$
|
||||
security: false
|
||||
|
||||
secured_area:
|
||||
pattern: ^/demo/secured/
|
||||
form_login:
|
||||
check_path: /demo/secured/login_check
|
||||
login_path: /demo/secured/login
|
||||
logout:
|
||||
path: /demo/secured/logout
|
||||
target: /demo/
|
||||
#anonymous: ~
|
||||
#http_basic:
|
||||
# realm: "Secured Demo Area"
|
||||
|
||||
access_control:
|
||||
#- { path: ^/login, roles: IS_AUTHENTICATED_ANONYMOUSLY, requires_channel: https }
|
||||
#- { path: ^/_internal, roles: IS_AUTHENTICATED_ANONYMOUSLY, ip: 127.0.0.1 }
|
Reference in New Issue
Block a user