parent
45532ef348
commit
4d505e07e2
@ -1,10 +1,9 @@ |
||||
# Install phpcr stack before using this configuration |
||||
#cmf_routing: |
||||
# chain: |
||||
# routers_by_id: |
||||
# cmf_routing.dynamic_router: 200 |
||||
# router.default: 100 |
||||
# dynamic: |
||||
# persistence: |
||||
# phpcr: |
||||
# enabled: true |
||||
cmf_routing: |
||||
chain: |
||||
routers_by_id: |
||||
# enable the DynamicRouter with high priority to allow overwriting configured routes with content |
||||
#symfony_cmf_routing_extra.dynamic_router: 200 |
||||
# enable the symfony default router with a lower priority |
||||
router.default: 150 # First chamilo/symfony2 router |
||||
sonata.page.router: 100 # then the page router |
||||
|
@ -1,12 +1,12 @@ |
||||
fos_rest: |
||||
param_fetcher_listener: true |
||||
body_listener: true |
||||
format_listener: true |
||||
view: |
||||
view_response_listener: force |
||||
body_converter: |
||||
enabled: false |
||||
validate: true |
||||
exception: |
||||
messages: |
||||
'Symfony\Component\HttpKernel\Exception\NotFoundHttpException': true |
||||
#fos_rest: |
||||
# param_fetcher_listener: true |
||||
# body_listener: true |
||||
# format_listener: true |
||||
# view: |
||||
# view_response_listener: force |
||||
# body_converter: |
||||
# enabled: false |
||||
# validate: true |
||||
# exception: |
||||
# messages: |
||||
# 'Symfony\Component\HttpKernel\Exception\NotFoundHttpException': true |
||||
|
@ -1,6 +1,6 @@ |
||||
jms_serializer: |
||||
visitors: |
||||
json: |
||||
options: |
||||
- JSON_UNESCAPED_SLASHES |
||||
- JSON_PRESERVE_ZERO_FRACTION |
||||
#jms_serializer: |
||||
# visitors: |
||||
# json: |
||||
# options: |
||||
# - JSON_UNESCAPED_SLASHES |
||||
# - JSON_PRESERVE_ZERO_FRACTION |
||||
|
@ -1,33 +1,42 @@ |
||||
# |
||||
# more information can be found here http://sonata-project.org/bundles/cache |
||||
# |
||||
|
||||
#sonata_cache: |
||||
# caches: |
||||
# esi: |
||||
# servers: |
||||
# - varnishadm -T 127.0.0.1:2000 {{ COMMAND }} "{{ EXPRESSION }}" |
||||
# |
||||
# ssi: |
||||
# token: TheToken |
||||
# |
||||
# mongo: |
||||
# database: cache |
||||
# collection: cache |
||||
# servers: |
||||
# - {host: 127.0.0.1, port: 27017, user: username, password: pASS'} |
||||
# - {host: 127.0.0.2} |
||||
# |
||||
# memcached: |
||||
# prefix: test # prefix to ensure there is no clash between instances |
||||
# servers: |
||||
# - {host: 127.0.0.1, port: 11211, weight: 0} |
||||
# |
||||
# predis: |
||||
# servers: |
||||
# - {host: 127.0.0.1, port: 11211, database: 6379} |
||||
## esi: |
||||
## servers: |
||||
## - varnishadm -T 127.0.0.1:2000 {{ COMMAND }} "{{ EXPRESSION }}" |
||||
## |
||||
## ssi: |
||||
## token: TheToken |
||||
## |
||||
## mongo: |
||||
## database: cache |
||||
## collection: cache |
||||
## servers: |
||||
## - {host: 127.0.0.1, port: 27017, user: username, password: pASS'} |
||||
## - {host: 127.0.0.2} |
||||
## |
||||
## memcached: |
||||
## prefix: test # prefix to ensure there is no clash between instances |
||||
## servers: |
||||
## - {host: 127.0.0.1, port: 11211, weight: 0} |
||||
## |
||||
## predis: |
||||
## servers: |
||||
## - {host: 127.0.0.1, port: 11211, database: 6379} |
||||
## |
||||
## apc: |
||||
## token: s3cur3 # token used to clear the related cache |
||||
## prefix: test # prefix to ensure there is no clash between instances |
||||
## servers: |
||||
## - { domain: kooqit.local, ip: 127.0.0.1, port: 80} |
||||
# |
||||
# apc: |
||||
# token: s3cur3 # token used to clear the related cache |
||||
# prefix: test # prefix to ensure there is no clash between instances |
||||
# servers: |
||||
# - { domain: kooqit.local, ip: 127.0.0.1, port: 80} |
||||
# symfony: |
||||
# token: s3cur3 # token used to clear the related cache |
||||
# php_cache_enabled: true # Optional (default: false), clear OPcache |
||||
## types: [mytype1, mycustomtype2] # Optional, you can restrict allowed cache types |
||||
## servers: |
||||
## - { domain: kooqit.local, ip: 127.0.0.1, port: 80 } |
||||
## timeout: |
||||
## RCV: { sec: 2, usec: 0 } |
||||
## SND: { sec: 2, usec: 0 } |
@ -0,0 +1,51 @@ |
||||
<?php |
||||
|
||||
namespace Chamilo\ThemeBundle\DependencyInjection; |
||||
|
||||
use Symfony\Component\DependencyInjection\ContainerBuilder; |
||||
use Symfony\Component\Config\FileLocator; |
||||
use Symfony\Component\DependencyInjection\Extension\PrependExtensionInterface; |
||||
use Symfony\Component\HttpKernel\DependencyInjection\Extension; |
||||
use Symfony\Component\DependencyInjection\Loader; |
||||
|
||||
/** |
||||
* This is the class that loads and manages your bundle configuration |
||||
* |
||||
* To learn more see {@link http://symfony.com/doc/current/cookbook/bundles/extension.html} |
||||
*/ |
||||
class ChamiloThemeExtension extends Extension implements PrependExtensionInterface |
||||
{ |
||||
/** |
||||
* {@inheritDoc} |
||||
*/ |
||||
public function load(array $configs, ContainerBuilder $container) |
||||
{ |
||||
//$loader = new Loader\XmlFileLoader($container, new FileLocator(__DIR__.'/../Resources/config')); |
||||
//$loader->load('services.xml'); |
||||
} |
||||
|
||||
/** |
||||
* Allow an extension to prepend the extension configurations. |
||||
* |
||||
* @param ContainerBuilder $container |
||||
*/ |
||||
public function prepend(ContainerBuilder $container) |
||||
{ |
||||
$bundles = $container->getParameter('kernel.bundles'); |
||||
|
||||
if (isset($bundles['TwigBundle'])) { |
||||
$container->prependExtensionConfig('twig', [ |
||||
/*'form' => [ |
||||
'resources' => [ |
||||
'ChamiloThemeBundle:Layout:form-theme.html.twig' |
||||
] |
||||
],*/ |
||||
'globals' => [ |
||||
'admin_theme' => 'chamilo_admin_theme.theme_manager' |
||||
] |
||||
]); |
||||
} |
||||
|
||||
return; |
||||
} |
||||
} |
Loading…
Reference in new issue