Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- imports:
- - { resource: parameters.yml }
- - { resource: security.yml }
- - { resource: services.yml }
- - { resource: admin.yml }
- - { resource: "@UserBundle/Resources/config/services.yml" }
- - { resource: "@TestBundle/Resources/config/services.yml" }
- - { resource: "@AppBundle/Resources/config/services.yml" }
- - { resource: "@PriceBundle/Resources/config/services.yml" }
- - { resource: "@BillingFrameworkBundle/Resources/config/services.yml" }
- # Put parameters here that don't need to change on each machine where the app is deployed
- # http://symfony.com/doc/current/best_practices/configuration.html#application-related-configuration
- parameters:
- locale: en
- fos_user:
- db_driver: orm # other valid values are 'mongodb', 'couchdb' and 'propel'
- firewall_name: main
- user_class: UserBundle\Entity\User
- service:
- user_manager: ama.user_manager
- framework:
- #esi: ~
- translator: { fallbacks: ["%locale%"] }
- secret: "%secret%"
- router:
- resource: "%kernel.root_dir%/config/routing.yml"
- strict_requirements: ~
- cache:
- app: cache.adapter.redis
- default_redis_provider: "redis://%redis_host%:%redis_port%"
- form: ~
- csrf_protection: ~
- validation: { enable_annotations: true }
- #serializer: { enable_annotations: true }
- templating:
- engines: ['twig']
- default_locale: "%locale%"
- trusted_hosts: ~
- trusted_proxies: ~
- session:
- # http://symfony.com/doc/current/reference/configuration/framework.html#handler-id
- handler_id: session.handler.native_file
- # save_path: "%kernel.root_dir%/../var/sessions/%kernel.environment%"
- save_path: "/tmp"
- fragments: ~
- http_method_override: true
- assets:
- base_urls:
- - 'https://dfgot3i8y5mnv.cloudfront.net/'
- # Twig Configuration
- twig:
- debug: "%kernel.debug%"
- strict_variables: "%kernel.debug%"
- globals:
- menu_categories: "@app.category.repository"
- # Assetic Configuration
- assetic:
- debug: "%kernel.debug%"
- use_controller: false
- filters:
- cssrewrite: ~
- write_to: "s3://ama-dev-static-resources"
- # read_from: "s3://ama-dev-static-resources"
- # Doctrine Configuration
- doctrine:
- dbal:
- driver: pdo_mysql
- host: "%database_host%"
- port: "%database_port%"
- dbname: "%database_name%"
- user: "%database_user%"
- password: "%database_password%"
- charset: UTF8
- # if using pdo_sqlite as your database driver:
- # 1. add the path in parameters.yml
- # e.g. database_path: "%kernel.root_dir%/data/data.db3"
- # 2. Uncomment database_path in parameters.yml.dist
- # 3. Uncomment next line:
- # path: "%database_path%"
- orm:
- auto_generate_proxy_classes: "%kernel.debug%"
- naming_strategy: doctrine.orm.naming_strategy.underscore
- auto_mapping: true
- filters:
- softdeleteable:
- class: Gedmo\SoftDeleteable\Filter\SoftDeleteableFilter
- enabled: true
- mappings:
- gedmo_translatable:
- type: annotation
- prefix: Gedmo\Translatable\Entity
- dir: "%kernel.root_dir%/../vendor/gedmo/doctrine-extensions/lib/Gedmo/Translatable/Entity"
- alias: GedmoTranslatable # (optional) it will default to the name set for the mapping
- is_bundle: false
- gedmo_translator:
- type: annotation
- prefix: Gedmo\Translator\Entity
- dir: "%kernel.root_dir%/../vendor/gedmo/doctrine-extensions/lib/Gedmo/Translator/Entity"
- alias: GedmoTranslator # (optional) it will default to the name set for the mapping
- is_bundle: false
- gedmo_loggable:
- type: annotation
- prefix: Gedmo\Loggable\Entity
- dir: "%kernel.root_dir%/../vendor/gedmo/doctrine-extensions/lib/Gedmo/Loggable/Entity"
- alias: GedmoLoggable # (optional) it will default to the name set for the mappingmapping
- is_bundle: false
- gedmo_tree:
- type: annotation
- prefix: Gedmo\Tree\Entity
- dir: "%kernel.root_dir%/../vendor/gedmo/doctrine-extensions/lib/Gedmo/Tree/Entity"
- alias: GedmoTree # (optional) it will default to the name set for the mapping
- is_bundle: false
- # Swiftmailer Configuration
- swiftmailer:
- transport: "%mailer_transport%"
- host: "%mailer_host%"
- port: "%mailer_port%"
- username: "%mailer_user%"
- password: "%mailer_password%"
- spool: { type: memory }
- # Entity audit settings
- simple_things_entity_audit:
- audited_entities:
- - UserBundle\Entity\User
- - UserBundle\Entity\Group
- global_ignore_columns:
- - last_login
- sonata_doctrine_orm_admin:
- audit:
- force: false
- templates:
- form: [ AdminIntegrationBundle:Form:form_admin_fields.html.twig ]
- # app/config/config.yml
- stof_doctrine_extensions:
- default_locale: en
- translation_fallback: true
- persist_default_translation: true
- uploadable:
- # Default file path: This is one of the three ways you can configure the path for the Uploadable extension
- default_file_path: "%kernel.root_dir%/../web/uploads"
- # Mime type guesser class: Optional. By default, we provide an adapter for the one present in the HttpFoundation component of Symfony
- mime_type_guesser_class: Stof\DoctrineExtensionsBundle\Uploadable\MimeTypeGuesserAdapter
- # Default file info class implementing FileInfoInterface: Optional. By default we provide a class which is prepared to receive an UploadedFile instance.
- default_file_info_class: Stof\DoctrineExtensionsBundle\Uploadable\UploadedFileInfo
- orm:
- default:
- sluggable: true
- translatable: true
- uploadable: true
- timestampable: true
- softdeleteable: true
- sonata_translation:
- locales: [en, ro]
- default_locale: en
- gedmo:
- enabled: true
- # SonataAdmin bundle config
- sonata_admin:
- title: 'AMA Webstore'
- templates:
- layout: admin/layout.html.twig
- dashboard:
- groups:
- entities.management:
- icon: '<i class="fa fa-pencil-square-o"></i>'
- label: Content Management
- # Left menu entries (from services.yml)
- items:
- - app.admin.category
- - app.admin.game
- - app.admin.developer
- - app.admin.tier
- - app.admin.tier_vaue
- be_simple_i18n_routing:
- annotations: false
- locales:
- default_locale: en
- supported: []
- doctrine_migrations:
- dir_name: "%kernel.root_dir%/DoctrineMigrations"
- namespace: Application\Migrations
- table_name: migration_versions
- name: Application Migrations
- jms_serializer:
- enable_short_alias: false
- pugx_multi_user:
- users:
- default_users:
- entity:
- class: UserBundle\Entity\User
- billable_user:
- entity:
- class: UserBundle\Entity\BillableUser
- billing_framework:
- api_host: "https://amabilling.dev.zitec.ro"
- liip_imagine:
- filter_sets:
- game_poster_small:
- quality: 70
- format: jpg
- filters:
- thumbnail:
- size: ['767', '431']
- mode: 'inset'
- post_processors:
- jpegoptim: { strip_all: true, max: 70, progressive: true }
- game_poster_medium:
- quality: 70
- format: jpg
- filters:
- thumbnail:
- size: ['991', '557']
- mode: 'inset'
- post_processors:
- jpegoptim: { strip_all: true, max: 70, progressive: true }
- game_poster_large:
- quality: 70
- format: jpg
- filters:
- thumbnail:
- size: ['1440', '810']
- mode: 'inset'
- post_processors:
- jpegoptim: { strip_all: true, max: 70, progressive: true }
- game_screenshot_small:
- quality: 70
- format: jpg
- filters:
- thumbnail:
- size: ['767', '431']
- mode: 'inset'
- post_processors:
- jpegoptim: { strip_all: true, max: 70, progressive: true }
- game_screenshot_medium:
- quality: 70
- format: jpg
- filters:
- thumbnail:
- size: ['991', '557']
- mode: 'inset'
- post_processors:
- jpegoptim: { strip_all: true, max: 70, progressive: true }
- game_screenshot_large:
- quality: 70
- format: jpg
- filters:
- thumbnail:
- size: ['1440', '810']
- mode: 'inset'
- post_processors:
- jpegoptim: { strip_all: true, max: 70, progressive: true }
- game_thumbnail_small:
- quality: 70
- format: jpg
- filters:
- thumbnail:
- size: ['325', '188']
- mode: 'inset'
- post_processors:
- jpegoptim: { strip_all: true, max: 70, progressive: true }
- game_thumbnail_medium:
- quality: 70
- format: jpg
- filters:
- thumbnail:
- size: ['374', '216']
- mode: 'inset'
- post_processors:
- jpegoptim: { strip_all: true, max: 70, progressive: true }
- similar_game:
- quality: 70
- format: jpg
- filters:
- thumbnail:
- size: ['298', '168']
- mode: 'inset'
- post_processors:
- jpegoptim: { strip_all: true, max: 70, progressive: true }
- resolvers:
- local:
- flysystem:
- filesystem_service: 'oneup_flysystem.%used_filesystem_storage%_filesystem'
- root_url: '/%uploads_path%'
- cache_prefix: 'cache'
- s3:
- flysystem:
- filesystem_service: 'oneup_flysystem.%used_filesystem_storage%_liip_filesystem'
- root_url: 'https://dfgot3i8y5mnv.cloudfront.net/%uploads_path%'
- cache_prefix: 'cache'
- cache: '%used_filesystem_storage%'
- loaders:
- default:
- flysystem:
- filesystem_service: 'oneup_flysystem.%used_filesystem_storage%_liip_filesystem'
- oneup_flysystem:
- adapters:
- local_adapter:
- local:
- directory: '%kernel.root_dir%/../web/%uploads_path%'
- aws_adapter:
- awss3v3:
- client: 'app.s3_client'
- bucket: 'ama-dev-static-resources'
- # prefix: '%uploads_path%'
- aws_liip_adapter:
- awss3v3:
- client: 'app.s3_client'
- bucket: 'ama-dev-static-resources'
- prefix: '%uploads_path%'
- filesystems:
- local:
- adapter: 'local_adapter'
- local_liip:
- adapter: 'local_adapter' # the local and local_liip filesystem are the same but this need to be added to work on local environment
- s3:
- adapter: 'aws_adapter'
- s3_liip:
- adapter: 'aws_liip_adapter' #the images generated by liip imagine bundle needs to be in uploads folder and you can`t
- # specify that option anywhere else than in adapter configs so we need to make a new adapter
- # that is passed to liip loaders and resolvers
- file_storage:
- used_filesystem_storage: '%used_filesystem_storage%'
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement