Skip to content
This repository has been archived by the owner on Dec 18, 2020. It is now read-only.

Commit

Permalink
cleanup config
Browse files Browse the repository at this point in the history
  • Loading branch information
wachterjohannes committed Jul 1, 2015
1 parent 894f70d commit 9b4ad67
Show file tree
Hide file tree
Showing 8 changed files with 218 additions and 213 deletions.
53 changes: 1 addition & 52 deletions app/config/admin/config.yml
Original file line number Diff line number Diff line change
@@ -1,20 +1,15 @@
imports:
- { resource: ../config.yml }
- { resource: sulu.yml }
- { resource: security.yml }
- { resource: ../widgets.yml }

framework:
router:
resource: "%kernel.root_dir%/config/admin/routing.yml"
strict_requirements: ~
session:
save_path: "%kernel.cache_dir%/../../sessions/admin/%kernel.environment%"

# Twig Configuration
twig:
debug: %kernel.debug%
strict_variables: %kernel.debug%

# Assetic Configuration
assetic:
bundles: [ ClientWebsiteBundle ]
Expand All @@ -26,53 +21,7 @@ doctrine:
string_functions:
CAST: Sulu\Component\Rest\DQL\Cast

# SULU Content Configuration
sulu_content:
preview:
mode: auto
websocket: false
delay: 200

# SULU Admin Configuration
sulu_admin:
name: %sulu_admin.name%
email: %sulu_admin.email%

# Just a dirty hack to get the jms serializer bundle correctly working
# https://github.com/schmittjoh/JMSSerializerBundle/pull/270#issuecomment-21171800
parameters:
jms_serializer.cache_naming_strategy.class: JMS\Serializer\Naming\IdenticalPropertyNamingStrategy

sulu_contact:
form_of_address:
male:
id: 0
name: male
translation: contact.contacts.formOfAddress.male
female:
id: 1
name: female
translation: contact.contacts.formOfAddress.female

# Massive Build Configuration
massive_build:
targets:
prod:
dependencies:
database: ~
phpcr: ~
fixtures: ~
phpcr_migrations: ~
dev:
dependencies:
database: ~
fixtures: ~
phpcr: ~
user: ~
phpcr_migrations: ~
maintain:
dependencies:
node_order:
search_index:
phpcr_migrations: ~

41 changes: 41 additions & 0 deletions app/config/admin/sulu.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
imports:
- { resource: ../sulu.yml }

# Just a dirty hack to get the jms serializer bundle correctly working
# https://github.com/schmittjoh/JMSSerializerBundle/pull/270#issuecomment-21171800
parameters:
jms_serializer.cache_naming_strategy.class: JMS\Serializer\Naming\IdenticalPropertyNamingStrategy

# Massive Build Configuration
massive_build:
targets:
prod:
dependencies:
database: ~
phpcr: ~
fixtures: ~
phpcr_migrations: ~
dev:
dependencies:
database: ~
fixtures: ~
phpcr: ~
user: ~
phpcr_migrations: ~
maintain:
dependencies:
node_order:
search_index:
phpcr_migrations: ~

# Sulu Bundles
sulu_contact:
form_of_address:
male:
id: 0
name: male
translation: contact.contacts.formOfAddress.male
female:
id: 1
name: female
translation: contact.contacts.formOfAddress.female
145 changes: 8 additions & 137 deletions app/config/config.yml
Original file line number Diff line number Diff line change
@@ -1,13 +1,16 @@
imports:
- { resource: parameters.yml }
- { resource: phpcr.yml }
- { resource: services.yml }

framework:
#esi: ~
translator: { fallback: "%locale%" }
#translator: { fallbacks: ["%locale%"] }
secret: "%secret%"
router:
resource: "%kernel.root_dir%/config/routing.yml"
strict_requirements: ~
form: ~
csrf_protection: false
csrf_protection: ~
validation: { enable_annotations: true }
templating:
engines: ['twig']
Expand All @@ -30,12 +33,10 @@ twig:
assetic:
debug: "%kernel.debug%"
use_controller: false
write_to: "%kernel.root_dir%/../web"
#bundles: [ ]
bundles: [ ]
#java: /usr/bin/java
filters:
cssrewrite:
apply_to: '\.(css)$'
cssrewrite: ~
#closure:
# jar: "%kernel.root_dir%/Resources/java/compiler.jar"
#yui_css:
Expand All @@ -61,25 +62,6 @@ doctrine:
orm:
auto_generate_proxy_classes: "%kernel.debug%"
auto_mapping: true
mappings:
gedmo_tree:
type: "xml"
prefix: "Gedmo\Tree\Entity"
dir: "%kernel.root_dir%/../vendor/gedmo/doctrine-extensions/lib/Gedmo/Tree/Entity"
alias: "GedmoTree" # this one is optional and will default to the name set for the mapping
is_bundle: false
resolve_target_entities:
Sulu\Component\Security\Authentication\UserInterface: Sulu\Bundle\SecurityBundle\Entity\User
Sulu\Bundle\ProductBundle\Entity\ProductInterface: Sulu\Bundle\ProductBundle\Entity\Product
Sulu\Component\Security\Authentication\RoleInterface: Sulu\Bundle\SecurityBundle\Entity\Role
Sulu\Bundle\MediaBundle\Entity\CollectionInterface: Sulu\Bundle\MediaBundle\Entity\Collection
Sulu\Bundle\ContactBundle\Entity\AccountInterface: Sulu\Bundle\ContactBundle\Entity\Account

# Doctrine Extension Configuration
stof_doctrine_extensions:
orm:
default:
tree: true

# Swiftmailer Configuration
swiftmailer:
Expand All @@ -88,114 +70,3 @@ swiftmailer:
username: "%mailer_user%"
password: "%mailer_password%"
spool: { type: memory }

# FOS REST Configuration
fos_rest:
routing_loader:
default_format: "json"

# LIIP Theme Configuration
liip_theme:
themes: ["default"]
active_theme: "default"
load_controllers: false

# SULU Core Configuration
sulu_core:
locales: ["de","en"]
phpcr:
backend: "%phpcr_backend%"
workspace: "%phpcr_workspace%"
username: "%phpcr_user%"
password: "%phpcr_pass%"
webspace:
config_dir: "%kernel.root_dir%/Resources/webspaces"
content:
structure:
default_type:
snippet: "default"
paths:
homepage:
path: %kernel.root_dir%/Resources/pages
type: home
page:
path: "%kernel.root_dir%/Resources/pages"
type: "page"
snippet:
path: "%kernel.root_dir%/Resources/snippets"
type: "snippet"
sulu:
path: "%kernel.root_dir%/../vendor/sulu/sulu/src/Sulu/Bundle/CoreBundle/Content/templates"
type: "page"

# SULU Media configuration
sulu_media:
search:
enabled: true

sulu_websocket:
server:
http_host: %websocket_url%
port: %websocket_port%

# Symfony CMF Configuration
cmf_core:
publish_workflow:
enabled: false

sulu_http_cache:
handlers:
paths:
enabled: true
public:
max_age: 240
shared_max_age: 240
use_page_ttl: true
enabled: true
debug:
enabled: %kernel.debug%
proxy_client:
symfony:
enabled: true

sulu_content:
search:
mapping:
Sulu\Bundle\ContentBundle\Document\PageDocument:
index: page
category: page
Sulu\Bundle\SnippetBundle\Document\SnippetDocument:
index: snippet
category: snippet

massive_search:
localization_strategy: index
persistence:
doctrine_orm:
enabled: true

doctrine_cache:
providers:
phpcr_meta:
type: %phpcr_cache%
phpcr_nodes:
type: %phpcr_cache%

jms_serializer:
metadata:
debug: %kernel.debug%

sulu_document_manager:
mapping:
page:
class: Sulu\Bundle\ContentBundle\Document\PageDocument
phpcr_type: sulu:page
home:
class: Sulu\Bundle\ContentBundle\Document\HomeDocument
phpcr_type: sulu:home
route:
class: Sulu\Bundle\ContentBundle\Document\RouteDocument
phpcr_type: sulu:path
snippet:
class: Sulu\Bundle\SnippetBundle\Document\SnippetDocument
phpcr_type: sulu:snippet
9 changes: 9 additions & 0 deletions app/config/services.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
# Learn more about services, parameters and containers at
# http://symfony.com/doc/current/book/service_container.html
parameters:
# parameter_name: value

services:
# service_name:
# class: AppBundle\Directory\ClassName
# arguments: ["@another_service_name", "plain_value", "%parameter_name%"]
Loading

0 comments on commit 9b4ad67

Please sign in to comment.