Update config files + adding routes

pull/2487/head
jmontoyaa 8 years ago
parent 4049dc2bb3
commit c989ca43c7
  1. 78
      config/packages/chamilo.yaml
  2. 32
      config/packages/doctrine.yaml
  3. 3
      config/packages/framework.yaml
  4. 41
      config/packages/hwi_oauth.yaml
  5. 44
      config/packages/ivory_ck_editor.yaml
  6. 0
      config/packages/mopa_bootstrap.yaml
  7. 6
      config/packages/swiftmailer.yaml
  8. 6
      config/routes/annotations.yaml
  9. 20
      config/routes/chamilo.yaml
  10. 2
      config/routes/elfinder.yaml
  11. 2
      config/routes/fos_user.yaml
  12. 21
      config/routes/hwi_oauth.yaml
  13. 18
      config/routes/sonata_admin.yaml
  14. 58
      config/routes/sonata_api.yaml
  15. 74
      config/routes/sonata_front.yaml

@ -0,0 +1,78 @@
services:
# default configuration for services in *this* file
_defaults:
# automatically injects dependencies in your services
autowire: true
# automatically registers your services as commands, event subscribers, etc.
autoconfigure: true
# this means you cannot fetch services directly from the container via $container->get()
# if you need to do this, you can override this setting on individual services
public: false
# makes classes in src/ available to be used as services
# this creates a service per class whose id is the fully-qualified class name
AdminBundle\:
resource: '../../src/AdminBundle/*'
# you can exclude directories or files
# but if a service is unused, it's removed anyway
exclude: '../../src/AdminBundle/{ChamiloAdminBundle.php,Entity,Repository,Tests}'
ClassificationBundle\:
resource: '../../src/ClassificationBundle/*'
# you can exclude directories or files
# but if a service is unused, it's removed anyway
exclude: '../../src/ClassificationBundle/{ChamiloClassificationBundle.php,Entity,Admin,Document,Repository,Tests}'
ContactBundle\:
resource: '../../src/ContactBundle/*'
# you can exclude directories or files
# but if a service is unused, it's removed anyway
exclude: '../../src/ContactBundle/{ChamiloContactBundle.php,Entity,Admin,Controller,DependencyInjection,Form,Repository,Tests}'
Chamilo\CoreBundle\:
resource: '../../src/CoreBundle/*'
# you can exclude directories or files
# but if a service is unused, it's removed anyway
exclude: '../../src/CoreBundle/{Admin,Block,Component,Composer,DependencyInjection,EventListener,Form,Framework,Menu,Migrations,Security,Settings,Twig,Controller,ChamiloCoreBundle.php,Entity,Repository,Tests}'
Chamilo\CoreBundle\Controller\:
resource: '../../src/CoreBundle/Controller'
public: true
tags: ['controller.service_arguments']
Chamilo\UserBundle\:
resource: '../../src/UserBundle/*'
# you can exclude directories or files
# but if a service is unused, it's removed anyway
exclude: '../../src/UserBundle/{Admin,Block,Component,Composer,DependencyInjection,EventListener,Form,Framework,Menu,Migrations,Security,Settings,Twig,Controller,ChamiloUserBundle.php,Entity,Repository,Tests}'
# controllers are imported separately to make sure they're public
# and have a tag that allows actions to type-hint services
# CoreBundle\Controller\:
# resource: '../../src/CoreBundle/Controller'
# public: true
# tags: ['controller.service_arguments']
#fos_comment:
# db_driver: orm
# class:
# model:
# comment: Application\Sonata\CommentBundle\Entity\Comment
# thread: Application\Sonata\CommentBundle\Entity\Thread
# form:
# comment:
# type: sonata_comment_comment
# Doctrine audit
sonata_doctrine_orm_admin:
audit:
force: false # Audits are set in the admin.yml files with audit:true
# Grid default template
#apy_data_grid:
# theme: ChamiloCoreBundle::grid.html.twig
#
imports:
- { resource: ../../src/CoreBundle/Resources/config/services.yml }
- { resource: ../../vendor/knplabs/doctrine-behaviors/config/orm-services.yml }

@ -1,30 +1,26 @@
parameters:
# Adds a fallback DATABASE_URL if the env var is not set.
# This allows you to run cache:warmup even if your
# environment variables are not available yet.
# You should not need to change this value.
env(DATABASE_URL): ''
doctrine:
dbal:
# configure these for your database server
server_version: 5.6
dbname: '%env(DATABASE_NAME)%'
user: '%env(DATABASE_USER)%'
password: '%env(DATABASE_PASSWORD)%'
host: '%env(DATABASE_HOST)%'
driver: 'pdo_mysql'
server_version: '5.7'
charset: utf8mb4
charset: utf8mb4
# With Symfony 3.3, remove the `resolve:` prefix
url: '%env(resolve:DATABASE_URL)%'
types:
json: Sonata\Doctrine\Types\JsonType
orm:
auto_generate_proxy_classes: '%kernel.debug%'
naming_strategy: doctrine.orm.naming_strategy.underscore
auto_mapping: true
mappings:
App:
is_bundle: false
type: annotation
dir: '%kernel.project_dir%/src/Entity'
prefix: 'App\Entity'
alias: App
# App:
# is_bundle: false
# type: annotation
# dir: '%kernel.project_dir%/src/Entity'
# prefix: 'App\Entity'
# alias: App
gedmo_translatable:
type: annotation
prefix: Gedmo\Translatable\Entity

@ -1,8 +1,7 @@
framework:
secret: '%env(APP_SECRET)%'
#default_locale: en
#csrf_protection: ~
#http_method_override: true
csrf_protection: ~
# uncomment this entire section to enable sessions
#session:

@ -0,0 +1,41 @@
hwi_oauth:
connect:
account_connector: chamilo_user_provider
firewall_names: [admin]
resource_owners:
github:
type: github
client_id: <client_id>
client_secret: <client_secret>
facebook:
type: facebook
client_id: <client_id>
client_secret: <client_secret>
google:
type: google
client_id: <client_id>
client_secret: <client_secret>
scope: "email profile"
my_custom_oauth2:
type: oauth2
client_id: <client_id>
client_secret: <client_secret>
access_token_url: https://path.to/oauth/v2/token
authorization_url: https://path.to/oauth/v2/authorize
infos_url: https://path.to/api/user
scope: "user_details"
user_response_class: HWI\Bundle\OAuthBundle\OAuth\Response\PathUserResponse
paths:
identifier: id
nickname: username
realname: fullname
fosub:
# try 30 times to check if a username is available (foo, foo1, foo2 etc)
username_iterations: 30
# mapping between resource owners (see below) and properties
properties:
github: githubId
google: googleId
facebook: facebookId
my_custom_provider: customId

@ -1,9 +1,41 @@
ivory_ck_editor:
default_config: simple_toolbar
autoload: false
base_path: "bundles/ivoryckeditor"
js_path: "bundles/ivoryckeditor/ckeditor.js"
default_config: default
configs:
simple_toolbar:
chamilo:
filebrowserBrowseRoute: elfinder
filebrowserBrowseRouteParameters: []
default:
# default toolbar plus Format button
toolbar:
- ['Bold', 'Italic', 'Strike', 'Link']
- ['BulletedList', 'NumberedList', '-', 'Outdent', 'Indent']
- ['Copy', 'Paste', 'PasteFromWord', '-', 'Undo', 'Redo']
- ['Source']
- [Bold, Italic, Underline, -, Cut, Copy, Paste, PasteText, PasteFromWord, -, Undo, Redo, -, NumberedList, BulletedList, -, Outdent, Indent, -, Blockquote, -, Image, Link, Unlink, Table]
- [Format, Maximize, Source]
filebrowserBrowseRoute: admin_chamilo_media_media_ckeditor_browser
filebrowserImageBrowseRoute: admin_chamilo_media_media_ckeditor_browser
# Display images by default when clicking the image dialog browse button
filebrowserImageBrowseRouteParameters:
provider: sonata.media.provider.image
filebrowserUploadRoute: admin_chamilo_media_media_ckeditor_upload
filebrowserUploadRouteParameters:
provider: sonata.media.provider.file
# Upload file as image when sending a file from the image dialog
filebrowserImageUploadRoute: admin_chamilo_media_media_ckeditor_upload
filebrowserImageUploadRouteParameters:
provider: sonata.media.provider.image
context: my-context # Optional, to upload in a custom context
plugins:
wordcount:
path: "/bundles/chamilocore/ckeditor/plugins/wordcount"
filename: "plugin.js"
# adobeair:
# path: "/bundles/chamilocore/components/ckeditor/plugins/adobeair"
# filename: "plugin.js"
# iframedialog:
# path: "/bundles/chamilocore/components/ckeditor/plugins/iframedialog"
# filename: "plugin.js"
# docprops:
# path: "/bundles/chamilocore/components/ckeditor/plugins/docprops"
# filename: "plugin.js"

@ -1,3 +1,7 @@
swiftmailer:
url: '%env(MAILER_URL)%'
transport: '%env(MAILER_TRANSPORT)%'
username: '%env(MAILER_USERNAME)%'
password: '%env(MAILER_PASSWORD)%'
host: '%env(MAILER_HOST)%'
port: '%env(MAILER_PORT)%'
spool: { type: 'memory' }

@ -1,3 +1,3 @@
controllers:
resource: ../../src/Controller/
type: annotation
#controllers:
# resource: ../../src/Controller/
# type: annotation

@ -0,0 +1,20 @@
chamilo_course:
resource: "@ChamiloCourseBundle/Resources/config/routing.yml"
prefix: /
chamilo_contact:
resource: "@ChamiloContactBundle/Resources/config/routing.yml"
prefix: /contact
#chamilo_installer:
# resource: "@ChamiloInstallerBundle/Resources/config/routing.yml"
# Always at the end
core_bundle:
resource: "@ChamiloCoreBundle/Resources/config/routing.yml"
page_bundle:
resource: "@ChamiloPageBundle/Resources/config/routing.yml"
faq:
resource: "@ChamiloFaqBundle/Resources/config/routing.yml"

@ -0,0 +1,2 @@
elfinder:
resource: "@FMElfinderBundle/Resources/config/routing.yml"

@ -0,0 +1,2 @@
fos_user:
resource: "@FOSUserBundle/Resources/config/routing/all.xml"

@ -0,0 +1,21 @@
# HWIOAuthBundle routes
hwi_oauth_redirect:
resource: "@HWIOAuthBundle/Resources/config/routing/redirect.xml"
prefix: /connect
hwi_oauth_connect:
resource: "@HWIOAuthBundle/Resources/config/routing/connect.xml"
prefix: /connect
hwi_oauth_login:
resource: "@HWIOAuthBundle/Resources/config/routing/login.xml"
prefix: /connect
facebook_login:
path: /connect/facebook
google_login:
path: /connect/google
github_login:
path: /connect/github

@ -0,0 +1,18 @@
# cross links between kernels
admin_area:
resource: '@SonataAdminBundle/Resources/config/routing/sonata_admin.xml'
_sonata_admin:
resource: .
type: sonata_admin
sonata_user_admin_security:
resource: '@SonataUserBundle/Resources/config/routing/admin_security.xml'
sonata_user_admin_resetting:
resource: '@SonataUserBundle/Resources/config/routing/admin_resetting.xml'
prefix: /resetting
sonata_media_pixlr:
resource: '@SonataMediaBundle/Resources/config/routing/pixlr.xml'
prefix: /media

@ -0,0 +1,58 @@
#NelmioApiDocBundle:
# resource: "@NelmioApiDocBundle/Resources/config/routing.yml"
# prefix: /doc
#sonata_api_classification:
# type: rest
# prefix: /classification
# resource: "@SonataClassificationBundle/Resources/config/routing/api.xml"
#
#sonata_api_news:
# type: rest
# prefix: /news
# resource: "@SonataNewsBundle/Resources/config/routing/api.xml"
#
#sonata_api_media:
# type: rest
# prefix: /media
# resource: "@SonataMediaBundle/Resources/config/routing/api.xml"
#
#sonata_api_notification:
# type: rest
# prefix: /notification
# resource: "@SonataNotificationBundle/Resources/config/routing/api.xml"
#sonata_api_ecommerce_product:
# type: rest
# prefix: /ecommerce
# resource: "@SonataProductBundle/Resources/config/routing/api.xml"
#
#sonata_api_ecommerce_order:
# type: rest
# prefix: /ecommerce
# resource: "@SonataOrderBundle/Resources/config/routing/api.xml"
#
#sonata_api_ecommerce_invoice:
# type: rest
# prefix: /ecommerce
# resource: "@SonataInvoiceBundle/Resources/config/routing/api.xml"
#
#sonata_api_ecommerce_customer:
# type: rest
# prefix: /ecommerce
# resource: "@SonataCustomerBundle/Resources/config/routing/api.xml"
#
#sonata_api_ecommerce_basket:
# type: rest
# prefix: /ecommerce
# resource: "@SonataBasketBundle/Resources/config/routing/api.xml"
#
#sonata_api_page:
# type: rest
# prefix: /page
# resource: "@SonataPageBundle/Resources/config/routing/api.xml"
#
#sonata_api_user:
# type: rest
# prefix: /user
# resource: "@SonataUserBundle/Resources/config/routing/api.xml"

@ -0,0 +1,74 @@
# Profile routes
#sonata_user_security:
# resource: "@SonataUserBundle/Resources/config/routing/sonata_security_1.xml"
##
#sonata_user_resetting:
# resource: "@SonataUserBundle/Resources/config/routing/sonata_resetting_1.xml"
# prefix: /resetting
#
#sonata_user_profile:
# resource: "@SonataUserBundle/Resources/config/routing/sonata_profile_1.xml"
# prefix: /profile
#
#sonata_user_register:
# resource: "@SonataUserBundle/Resources/config/routing/sonata_registration_1.xml"
# prefix: /register
#
#sonata_user_change_password:
# resource: "@SonataUserBundle/Resources/config/routing/sonata_change_password_1.xml"
# prefix: /profile
sonata_page_cache:
resource: '@SonataPageBundle/Resources/config/routing/cache.xml'
prefix: /
sonata_page_exceptions:
resource: '@SonataPageBundle/Resources/config/routing/exceptions.xml'
prefix: /page
sonata_media_gallery:
resource: '@SonataMediaBundle/Resources/config/routing/gallery.xml'
prefix: /media/gallery
sonata_media_media:
resource: '@SonataMediaBundle/Resources/config/routing/media.xml'
prefix: /media
#sonata_customer:
# resource: @SonataCustomerBundle/Resources/config/routing/customer.xml
# prefix: /shop/user
#
#sonata_basket:
# resource: @SonataBasketBundle/Resources/config/routing/basket.xml
# prefix: /shop/basket
#
#sonata_order:
# resource: @SonataOrderBundle/Resources/config/routing/order.xml
# prefix: /shop/user/order
#
#sonata_product_catalog:
# resource: @SonataProductBundle/Resources/config/routing/catalog.xml
# prefix: /shop/catalog
#
#sonata_product:
# resource: @SonataProductBundle/Resources/config/routing/product.xml
# prefix: /shop/product
#
#sonata_payment:
# resource: @SonataPaymentBundle/Resources/config/routing/payment.xml
# prefix: /shop/payment
#
#sonata_invoice:
# resource: @SonataInvoiceBundle/Resources/config/routing/invoice.xml
# prefix: /shop/user/invoice
#blog:
# resource: '@SonataNewsBundle/Resources/config/routing/news.xml'
# prefix: /blog
#fos_comment:
# type: rest
# resource: "@FOSCommentBundle/Resources/config/routing.yml"
# prefix: /comments
# defaults: { _format: html }
Loading…
Cancel
Save