Unverified Commit 7be1ad42 authored by Sebastian Castro's avatar Sebastian Castro
Browse files

Moving to Symfony Flex, in progress

parent 308e10d6

Too many changes to show.

To preserve performance only 1000 of 1000+ files are displayed.
doctrine_mongodb:
auto_generate_proxy_classes: true
auto_generate_hydrator_classes: true
connections:
default:
server: '%env(resolve:MONGODB_URL)%'
options: {}
default_database: gogocarto_default
document_managers:
default:
auto_mapping: true
mappings:
App:
is_bundle: false
type: annotation
dir: '%kernel.project_dir%/src/Document'
prefix: 'App\Document'
alias: App
gedmo_loggable:
type: annotation
prefix: Gedmo\Loggable\Document
dir: "%kernel.root_dir%/../vendor/gedmo/doctrine-extensions/lib/Gedmo/Loggable/Document"
alias: GedmoLoggable # (optional) it will default to the name set for the mappingmapping
is_bundle: false
fos_ck_editor:
default_config: full
configs:
full:
toolbar:
- [ - , NumberedList, BulletedList, -, Outdent, Indent ]
- [ Image, Link, Unlink, Table , Blockquote, HorizontalRule, Iframe ]
- -
- [ Cut, Copy, Paste, PasteText, PasteFromWord, -, Undo, Redo ]
- [ -,Maximize, ShowBlocks, Source ]
- /
- [ Bold, Italic, Underline, Strike, -, RemoveFormat ]
- [ -, Styles,Format,Font,FontSize, TextColor, BGColor]
- [ -, JustifyLeft,JustifyCenter,JustifyRight,JustifyBlock]
\ No newline at end of file
fos_user:
db_driver: mongodb # can be orm or mongodb
firewall_name: main
user_class: App\Document\User
registration:
form:
type: biopen_user_registration
confirmation:
enabled: true
from_email:
address: "%mailer_user%"
sender_name: "%env(instance_name)%"
group:
group_class: Application\Sonata\UserBundle\Document\Group
group_manager: sonata.user.mongodb.group_manager # If you're using doctrine orm (use sonata.user.mongodb.group_manager for mongodb)
service:
mailer: fos_user.mailer.twig_swift
user_manager: sonata.user.mongodb.user_manager # If you're using doctrine orm (use sonata.user.mongodb.user_manager for mongodb)
framework:
secret: '%env(APP_SECRET)%'
csrf_protection:
enabled: true
#http_method_override: true
# Enables session support. Note that the session will ONLY be started if you read or write from it.
# Remove or comment this section to explicitly disable session support.
session:
handler_id: null
# handler_id: session.handler.native_file
# save_path: "%kernel.root_dir%/../var/sessions/%kernel.environment%"
cookie_secure: auto
cookie_samesite: lax
#esi: true
#fragments: true
php_errors:
log: true
# translator: { fallbacks: ["%locale%"] }
# router:
# resource: "%kernel.root_dir%/config/routing.yml"
# strict_requirements: ~
# validation: { enable_annotations: true }
# templating:
# engines: ['twig']
# default_locale: "%locale%"
# trusted_hosts: ~
# http_method_override: true
# assets: ~
httplug:
plugins:
retry:
retry: 1
discovery:
client: 'auto'
clients:
app:
http_methods_client: true
plugins:
- 'httplug.plugin.content_length'
- 'httplug.plugin.redirect'
sonata_user:
impersonating:
route: sonata_admin_dashboard
manager_type: mongodb # can be orm or mongodb
class: # Entity Classes
user: Biopen\CoreBundle\Document\User
group: Application\Sonata\UserBundle\Document\Group
admin: # Admin Classes
user:
class: Biopen\CoreBundle\Admin\UserAdmin
controller: BiopenCoreBundle:UserAdmin
translation: SonataUserBundle
group:
class: Sonata\UserBundle\Admin\Document\GroupAdmin
controller: SonataAdminBundle:CRUD
translation: SonataUserBundle
fos_user:
db_driver: mongodb # can be orm or mongodb
firewall_name: main
user_class: Biopen\CoreBundle\Document\User
registration:
form:
type: biopen_user_registration
confirmation:
enabled: true
from_email:
address: "%mailer_user%"
sender_name: "%instance_name%"
group:
group_class: Application\Sonata\UserBundle\Document\Group
group_manager: sonata.user.mongodb.group_manager # If you're using doctrine orm (use sonata.user.mongodb.group_manager for mongodb)
service:
mailer: fos_user.mailer.twig_swift
user_manager: sonata.user.mongodb.user_manager # If you're using doctrine orm (use sonata.user.mongodb.user_manager for mongodb)
hwi_oauth:
# list of names of the firewalls in which this bundle is active, this setting MUST be set
firewall_names: [main]
......@@ -53,24 +12,20 @@ hwi_oauth:
resource_owners:
gplus:
type: google
client_id: "%oauth_google_id%"
client_secret: "%oauth_google_secret%"
client_id: "%env(oauth_google_id)%"
client_secret: "%env(oauth_google_secret)%"
scope: "email profile"
options:
display: popup #dialog is optimized for popup window
csrf: true
facebook:
type: facebook
client_id: "%oauth_facebook_id%"
client_secret: "%oauth_facebook_secret%"
client_id: "%env(oauth_facebook_id)%"
client_secret: "%env(oauth_facebook_secret)%"
scope: "public_profile,email"
options:
display: popup #dialog is optimized for popup window
auth_type: rerequest # Re-asking for Declined Permissions
yahoo:
type: yahoo
client_id: dj0yJmk9VlJSaEY2MTZIODVCJmQ9WVdrOWJGRlhUMjVJTlRnbWNHbzlNQS0tJnM9Y29uc3VtZXJzZWNyZXQmeD03Nw--
client_secret: babaa2b0eb6dc3d580f08f8ad298115409abae0c
communs:
type: oauth2
......@@ -85,6 +40,22 @@ hwi_oauth:
access_token_url: https://login.lescommuns.org/auth/realms/master/protocol/openid-connect/token
authorization_url: https://login.lescommuns.org/auth/realms/master/protocol/openid-connect/auth
infos_url: https://login.lescommuns.org/auth/realms/master/protocol/openid-connect/userinfo
client_id: "%oauth_communs_id%"
client_secret: "%oauth_communs_secret%"
client_id: "%env(oauth_communs_id)%"
client_secret: "%env(oauth_communs_secret)%"
scope: "email profile openid"
# DEFAULT CONFIG OF THE BUNDLE
# hwi_oauth:
# # list of names of the firewalls in which this bundle is active, this setting MUST be set
# firewall_names: [main]
# # https://github.com/hwi/HWIOAuthBundle/blob/master/Resources/doc/2-configuring_resource_owners.md
# resource_owners:
# facebook:
# type: facebook
# client_id: '%env(FB_ID)%'
# client_secret: '%env(FB_SECRET)%'
# scope: "email"
# options:
# display: popup
# csrf: true
\ No newline at end of file
jms_serializer:
visitors:
xml:
format_output: '%kernel.debug%'
# metadata:
# auto_detection: false
# directories:
# any-name:
# namespace_prefix: "My\\FooBundle"
# path: "@MyFooBundle/Resources/config/serializer"
# another-name:
# namespace_prefix: "My\\BarBundle"
# path: "@MyBarBundle/Resources/config/serializer"
framework:
mailer:
dsn: '%env(MAILER_DSN)%'
pix_sortable_behavior:
db_driver: mongodb
position_field:
default: position
entities:
App\Document\Option: index
App\Document\Category: index
\ No newline at end of file
doctrine:
orm:
auto_generate_proxy_classes: false
metadata_cache_driver:
type: pool
pool: doctrine.system_cache_pool
query_cache_driver:
type: pool
pool: doctrine.system_cache_pool
result_cache_driver:
type: pool
pool: doctrine.result_cache_pool
framework:
cache:
pools:
doctrine.result_cache_pool:
adapter: cache.app
doctrine.system_cache_pool:
adapter: cache.system
doctrine_mongodb:
auto_generate_proxy_classes: false
auto_generate_hydrator_classes: false
document_managers:
default:
metadata_cache_driver:
type: service
id: doctrine_mongodb.system_cache_provider
services:
doctrine_mongodb.system_cache_provider:
class: Symfony\Component\Cache\DoctrineProvider
public: false
arguments:
- '@doctrine_mongodb.system_cache_pool'
framework:
cache:
pools:
doctrine_mongodb.system_cache_pool:
adapter: cache.system
jms_serializer:
visitors:
json:
options:
- JSON_UNESCAPED_SLASHES
- JSON_PRESERVE_ZERO_FRACTION
imports:
- { resource: config.yml }
#framework:
# validation:
# cache: validator.mapping.cache.doctrine.apc
# serializer:
# cache: serializer.mapping.cache.apc
#doctrine:
# orm:
# metadata_cache_driver: apc
# result_cache_driver: apc
# query_cache_driver: apc
monolog:
channels: ['commands']
handlers:
main:
type: fingers_crossed
type: fingers_crossed
action_level: error
handler: nested
nested:
type: stream
path: "%kernel.logs_dir%/%kernel.environment%.log"
level: debug
handler: nested
excluded_http_codes: [404, 405]
command:
type: stream
path: "%kernel.logs_dir%/commands.log"
level: info
channels: commands
channels: ['commands']
nested:
type: stream
path: "%kernel.logs_dir%/%kernel.environment%.log"
level: debug
console:
type: console
type: console
process_psr_3_messages: false
channels: ["!event", "!doctrine"]
deprecation:
type: stream
path: "%kernel.logs_dir%/%kernel.environment%.deprecations.log"
deprecation_filter:
type: filter
handler: deprecation
max_level: info
channels: ["php"]
framework:
router:
strict_requirements: null
framework:
router:
utf8: true
......@@ -93,4 +93,29 @@ security:
- { path: ^/user/, role: IS_AUTHENTICATED_REMEMBERED }
- { path: ^/duplicates/, role: [ROLE_ADMIN] }
- { path: ^/api/.*, role: IS_AUTHENTICATED_ANONYMOUSLY }
- { path: ^/.*, role: IS_AUTHENTICATED_ANONYMOUSLY }
\ No newline at end of file
- { path: ^/.*, role: IS_AUTHENTICATED_ANONYMOUSLY }
# DEFAULT CONFIG
# security:
# # https://symfony.com/doc/current/security.html#where-do-users-come-from-user-providers
# providers:
# in_memory: { memory: null }
# firewalls:
# dev:
# pattern: ^/(_(profiler|wdt)|css|images|js)/
# security: false
# main:
# anonymous: lazy
# # activate different ways to authenticate
# # https://symfony.com/doc/current/security.html#firewalls-authentication
# # https://symfony.com/doc/current/security/impersonating_user.html
# # switch_user: true
# # Easy way to control access for large sections of your site
# # Note: Only the *first* access control that matches will be used
# access_control:
# # - { path: ^/admin, roles: ROLE_ADMIN }
# # - { path: ^/profile, roles: ROLE_USER }
\ No newline at end of file
sensio_framework_extra:
router:
annotations: false
sentry:
dsn: '%env(SENTRY_DSN)%'
sonata_block:
default_contexts: [cms]
blocks:
sonata.user.block.menu: # used to display the menu in profile pages
sonata.user.block.account: # used to display menu option (login option)
sonata.block.service.text: # used to if you plan to use Sonata user routes
# enable the SonataAdminBundle block
sonata.block.service.monitoring:
sonata.block.service.charts:
biopen.block.recent_elements:
contexts: [admin]
sonata_doctrine_mongo_db_admin:
templates:
form:
- "@BiopenAdmin/core_custom/form_admin_fields.html.twig"
sonata_formatter:
default_formatter: text
formatters:
markdown:
service: sonata.formatter.text.markdown
extensions:
- sonata.formatter.twig.control_flow
- sonata.formatter.twig.gist
# - sonata.media.formatter.twig #keep this commented unless you are using media bundle.
text:
service: sonata.formatter.text.text
extensions:
- sonata.formatter.twig.control_flow
- sonata.formatter.twig.gist
# - sonata.media.formatter.twig
rawhtml:
service: sonata.formatter.text.raw
extensions:
- sonata.formatter.twig.control_flow
- sonata.formatter.twig.gist
# - sonata.media.formatter.twig
richhtml:
service: sonata.formatter.text.raw
extensions:
- sonata.formatter.twig.control_flow
- sonata.formatter.twig.gist
# - sonata.media.formatter.twig
twig:
service: sonata.formatter.text.twigengine
extensions: [] # Twig formatter cannot have extensions
sonata_admin:
security:
handler: custom.sonata.security.handler.role # sonata.admin.security.handler.role
......@@ -97,4 +41,16 @@ sonata_admin:
icon: <i class='fa fa-cogs'></i>
sonata_user:
label: Utilisateurs
icon: <i class='fa fa-users'></i>
\ No newline at end of file
icon: <i class='fa fa-users'></i>
sonata_block:
default_contexts: [cms]
blocks:
sonata.user.block.menu: # used to display the menu in profile pages
sonata.user.block.account: # used to display menu option (login option)
sonata.block.service.text: # used to if you plan to use Sonata user routes
# enable the SonataAdminBundle block
sonata.block.service.monitoring:
sonata.block.service.charts:
biopen.block.recent_elements:
contexts: [admin]
\ No newline at end of file
sonata_core:
form:
mapping:
enabled: false
sonata_doctrine_mongo_db_admin:
templates:
form:
- "@BiopenAdmin/core_custom/form_admin_fields.html.twig"
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment