parent
bb761e7b27
commit
96a438f893
@ -1,216 +0,0 @@ |
||||
<?php |
||||
/* For licensing terms, see /license.txt */ |
||||
|
||||
use Symfony\Component\HttpKernel\Kernel; |
||||
use Symfony\Component\Config\Loader\LoaderInterface; |
||||
use Chamilo\CoreBundle\Component\Utils\ChamiloApi; |
||||
|
||||
/** |
||||
* Class AppKernel |
||||
*/ |
||||
class AppKernel extends Kernel |
||||
{ |
||||
protected $rootDir; |
||||
|
||||
public function registerBundles() |
||||
{ |
||||
$bundles = array( |
||||
new Symfony\Bundle\FrameworkBundle\FrameworkBundle(), |
||||
new Symfony\Bundle\SecurityBundle\SecurityBundle(), |
||||
new Symfony\Bundle\TwigBundle\TwigBundle(), |
||||
new Symfony\Bundle\MonologBundle\MonologBundle(), |
||||
new Symfony\Bundle\SwiftmailerBundle\SwiftmailerBundle(), |
||||
new Symfony\Bundle\AsseticBundle\AsseticBundle(), |
||||
new Sensio\Bundle\FrameworkExtraBundle\SensioFrameworkExtraBundle(), |
||||
|
||||
new Doctrine\Bundle\DoctrineBundle\DoctrineBundle(), |
||||
new Doctrine\Bundle\MigrationsBundle\DoctrineMigrationsBundle(), |
||||
//new Doctrine\Bundle\PHPCRBundle\DoctrinePHPCRBundle(), |
||||
new Doctrine\Bundle\DoctrineCacheBundle\DoctrineCacheBundle(), |
||||
|
||||
new FOS\RestBundle\FOSRestBundle(), |
||||
new JMS\SerializerBundle\JMSSerializerBundle($this), |
||||
|
||||
// KNP HELPER BUNDLES |
||||
new Knp\Bundle\MenuBundle\KnpMenuBundle(), |
||||
new Knp\Bundle\MarkdownBundle\KnpMarkdownBundle(), |
||||
// Data grid |
||||
//new APY\DataGridBundle\APYDataGridBundle(), |
||||
new Chamilo\FaqBundle\ChamiloFaqBundle(), |
||||
new Doctrine\Bundle\FixturesBundle\DoctrineFixturesBundle(), |
||||
new A2lix\TranslationFormBundle\A2lixTranslationFormBundle(), |
||||
|
||||
// Sonata |
||||
new Sonata\EasyExtendsBundle\SonataEasyExtendsBundle(), |
||||
new Sonata\CoreBundle\SonataCoreBundle(), |
||||
new Sonata\IntlBundle\SonataIntlBundle(), |
||||
new Sonata\FormatterBundle\SonataFormatterBundle(), |
||||
new Sonata\CacheBundle\SonataCacheBundle(), |
||||
new Sonata\BlockBundle\SonataBlockBundle(), |
||||
new Sonata\SeoBundle\SonataSeoBundle(), |
||||
new Sonata\ClassificationBundle\SonataClassificationBundle(), |
||||
new Sonata\NotificationBundle\SonataNotificationBundle(), |
||||
new Sonata\DatagridBundle\SonataDatagridBundle(), |
||||
new Sonata\MediaBundle\SonataMediaBundle(), |
||||
new Sonata\PageBundle\SonataPageBundle(), |
||||
new Theodo\Evolution\Bundle\SessionBundle\TheodoEvolutionSessionBundle(), |
||||
|
||||
new Spy\TimelineBundle\SpyTimelineBundle(), |
||||
new Sonata\TimelineBundle\SonataTimelineBundle(), |
||||
|
||||
//new SimpleThings\EntityAudit\SimpleThingsEntityAuditBundle(), |
||||
|
||||
new Sonata\AdminBundle\SonataAdminBundle(), |
||||
new Sonata\DoctrineORMAdminBundle\SonataDoctrineORMAdminBundle(), |
||||
|
||||
|
||||
// CMF Integration |
||||
new Symfony\Cmf\Bundle\RoutingBundle\CmfRoutingBundle(), |
||||
//new Symfony\Cmf\Bundle\SearchBundle\CmfSearchBundle(), |
||||
//new Symfony\Cmf\Bundle\BlogBundle\CmfBlogBundle(), |
||||
//new Sonata\DoctrinePHPCRAdminBundle\SonataDoctrinePHPCRAdminBundle(), |
||||
|
||||
// Oauth |
||||
//new HWI\Bundle\OAuthBundle\HWIOAuthBundle(), |
||||
|
||||
//new Gregwar\CaptchaBundle\GregwarCaptchaBundle(), |
||||
new Mopa\Bundle\BootstrapBundle\MopaBootstrapBundle(), |
||||
//new Liip\ThemeBundle\LiipThemeBundle(), |
||||
new Ivory\CKEditorBundle\IvoryCKEditorBundle(), |
||||
new FM\ElfinderBundle\FMElfinderBundle(), |
||||
new FOS\JsRoutingBundle\FOSJsRoutingBundle(), |
||||
new Knp\DoctrineBehaviors\Bundle\DoctrineBehaviorsBundle(), |
||||
|
||||
// User |
||||
new FOS\UserBundle\FOSUserBundle(), |
||||
new Sonata\UserBundle\SonataUserBundle('FOSUserBundle'), |
||||
new Chamilo\UserBundle\ChamiloUserBundle(), |
||||
/* |
||||
// Sylius |
||||
/*new Sylius\Bundle\SettingsBundle\SyliusSettingsBundle(), |
||||
//new Sylius\Bundle\AttributeBundle\SyliusAttributeBundle(), |
||||
new Sylius\Bundle\ResourceBundle\SyliusResourceBundle(), |
||||
new Sylius\Bundle\FlowBundle\SyliusFlowBundle(), |
||||
new WhiteOctober\PagerfantaBundle\WhiteOctoberPagerfantaBundle(), |
||||
new Bazinga\Bundle\HateoasBundle\BazingaHateoasBundle(),*/ |
||||
|
||||
// Chamilo |
||||
//new Chamilo\InstallerBundle\ChamiloInstallerBundle(), |
||||
new Chamilo\CoreBundle\ChamiloCoreBundle(), |
||||
new Chamilo\CourseBundle\ChamiloCourseBundle(), |
||||
// new Chamilo\SettingsBundle\ChamiloSettingsBundle(), |
||||
new Chamilo\ThemeBundle\ChamiloThemeBundle(), |
||||
//new Chamilo\NotificationBundle\ChamiloNotificationBundle(), |
||||
new Chamilo\AdminBundle\ChamiloAdminBundle(), |
||||
new Chamilo\TimelineBundle\ChamiloTimelineBundle(), |
||||
new \Chamilo\ContactBundle\ChamiloContactBundle(), |
||||
|
||||
// Based in Sonata |
||||
new Chamilo\ClassificationBundle\ChamiloClassificationBundle(), |
||||
new Chamilo\MediaBundle\ChamiloMediaBundle(), |
||||
new Chamilo\PageBundle\ChamiloPageBundle(), |
||||
/* |
||||
// Chamilo course tool |
||||
//new Chamilo\NotebookBundle\ChamiloNotebookBundle(), |
||||
|
||||
// Data |
||||
//new Oneup\FlysystemBundle\OneupFlysystemBundle(), */ |
||||
|
||||
// Extra |
||||
new Stof\DoctrineExtensionsBundle\StofDoctrineExtensionsBundle(), |
||||
|
||||
/* |
||||
//new JMS\TranslationBundle\JMSTranslationBundle(), |
||||
//new JMS\DiExtraBundle\JMSDiExtraBundle($this), |
||||
//new JMS\AopBundle\JMSAopBundle(), |
||||
/*new Bazinga\Bundle\FakerBundle\BazingaFakerBundle(), |
||||
//new Chamilo\CmsBundle\ChamiloCmsBundle(), |
||||
*/ |
||||
new Lunetics\LocaleBundle\LuneticsLocaleBundle() |
||||
); |
||||
|
||||
if (in_array($this->getEnvironment(), array('dev', 'test'))) { |
||||
//$bundles[] = new Jjanvier\Bundle\CrowdinBundle\JjanvierCrowdinBundle(); |
||||
$bundles[] = new Symfony\Bundle\DebugBundle\DebugBundle(); |
||||
$bundles[] = new Symfony\Bundle\WebProfilerBundle\WebProfilerBundle(); |
||||
$bundles[] = new Sensio\Bundle\DistributionBundle\SensioDistributionBundle(); |
||||
$bundles[] = new Sensio\Bundle\GeneratorBundle\SensioGeneratorBundle(); |
||||
//$bundles[] = new Sp\BowerBundle\SpBowerBundle(); |
||||
} |
||||
|
||||
return $bundles; |
||||
} |
||||
|
||||
/** |
||||
* @param LoaderInterface $loader |
||||
*/ |
||||
public function registerContainerConfiguration(LoaderInterface $loader) |
||||
{ |
||||
$loader->load($this->getRootDir().'/config/config_'.$this->getEnvironment().'.yml'); |
||||
} |
||||
|
||||
|
||||
/** |
||||
* @return string |
||||
*/ |
||||
public function getRootDir() |
||||
{ |
||||
if (null === $this->rootDir) { |
||||
$r = new \ReflectionObject($this); |
||||
$this->rootDir = str_replace('\\', '/', dirname($r->getFileName())); |
||||
} |
||||
|
||||
return $this->rootDir; |
||||
} |
||||
|
||||
/** |
||||
* Returns the real root path |
||||
* @return string |
||||
*/ |
||||
public function getRealRootDir() |
||||
{ |
||||
return realpath($this->getRootDir().'/../').'/'; |
||||
} |
||||
|
||||
/** |
||||
* Returns the data path |
||||
* @return string |
||||
*/ |
||||
public function getDataDir() |
||||
{ |
||||
return $this->getRealRootDir().'data/'; |
||||
} |
||||
|
||||
/** |
||||
* @return string |
||||
*/ |
||||
public function getAppDir() |
||||
{ |
||||
return $this->getRealRootDir().'app/'; |
||||
} |
||||
|
||||
/** |
||||
* @return string |
||||
*/ |
||||
public function getConfigDir() |
||||
{ |
||||
return $this->getRealRootDir().'app/config/'; |
||||
} |
||||
|
||||
/** |
||||
* @return string |
||||
*/ |
||||
public function getConfigurationFile() |
||||
{ |
||||
return $this->getRealRootDir().'app/config/configuration.php'; |
||||
} |
||||
|
||||
/** |
||||
* @param array $configuration |
||||
*/ |
||||
public function setApi(array $configuration) |
||||
{ |
||||
new ChamiloApi($configuration); |
||||
} |
||||
} |
||||
|
@ -1,13 +0,0 @@ |
||||
<?php |
||||
|
||||
use Doctrine\Common\Annotations\AnnotationRegistry; |
||||
use Composer\Autoload\ClassLoader; |
||||
|
||||
/** |
||||
* @var ClassLoader $loader |
||||
*/ |
||||
$loader = require __DIR__.'/../vendor/autoload.php'; |
||||
|
||||
AnnotationRegistry::registerLoader(array($loader, 'loadClass')); |
||||
|
||||
return $loader; |
File diff suppressed because it is too large
Load Diff
@ -1,243 +0,0 @@ |
||||
assetic: |
||||
debug: %kernel.debug% |
||||
use_controller: false |
||||
read_from: %kernel.root_dir%/../web |
||||
write_to: %kernel.root_dir%/../web |
||||
bundles: [ChamiloCoreBundle] |
||||
|
||||
filters: |
||||
cssrewrite: ~ |
||||
yui_js: { jar: "%kernel.root_dir%/../bin/yuicompressor.jar" } |
||||
yui_css: { jar: "%kernel.root_dir%/../bin/yuicompressor.jar" } |
||||
|
||||
assets: |
||||
# chamilo_bootstrap_css: |
||||
# inputs: |
||||
# - bundles/chamilocore/components/bootstrap/dist/css/bootstrap.min.css |
||||
# filters: |
||||
# - cssrewrite |
||||
# chamilo_font_awesome_css: |
||||
# inputs: |
||||
# - bundles/chamilocore/components/fontawesome/css/font-awesome.min.css |
||||
# filters: |
||||
# - cssrewrite |
||||
# chamilo_ionicons_css: |
||||
# inputs: |
||||
# - bundles/chamilocore/components/ionicons/css/ionicons.css |
||||
# filters: |
||||
# - cssrewrite |
||||
# |
||||
# chamilo_css: |
||||
# inputs: |
||||
# - @chamilo_bootstrap_css |
||||
# - @chamilo_font_awesome_css |
||||
# - @chamilo_ionicons_css |
||||
# - bundles/chamilocore/components/fullcalendar/dist/fullcalendar.min.css |
||||
# - bundles/chamilocore/components/chosen-bower/chosen.css |
||||
# - bundles/chamilocore/components/jquery-ui/themes/cupertino/jquery-ui.min.css |
||||
# - bundles/chamilocore/components/bootflat/css/bootflat.css |
||||
# - bundles/chamilocore/components/jqgrid/css/ui.jqgrid.css |
||||
# - bundles/chamilocore/components/select2/dist/css/select2.css |
||||
# - bundles/chamilocore/js/tag/style.css |
||||
# - bundles/chamilocore/components/jquery-file-upload/css/jquery.fileupload.css |
||||
# - bundles/chamilocore/components/jquery-file-upload/css/jquery.fileupload-ui.css |
||||
# - bundles/chamilocore/components/bootstrap-language/languages.css |
||||
# - bundles/chamilocore/css/grid.css |
||||
# |
||||
## - bundles/chamilocore/components/select2/select2-bootstrap.css |
||||
## - bundles/chamilocore/components/adminlte/css/jvectormap/* |
||||
## - bundles/chamilocore/components/adminlte/css/morris/* |
||||
## - bundles/chamilocore/components/adminlte/css/bootstrap-wysihtml5/bootstrap3-wysihtml5.css |
||||
## - bundles/chamilocore/components/adminlte/css/bootstrap-slider/slider.css |
||||
## - bundles/chamilocore/components/adminlte/css/colorpicker/bootstrap-colorpicker.css |
||||
## - bundles/chamilocore/components/adminlte/css/datatables/dataTables.bootstrap.css |
||||
## - bundles/chamilocore/components/adminlte/css/daterangepicker/daterangepicker-bs3.css |
||||
## - bundles/chamilocore/components/adminlte/css/iCheck/all.css |
||||
## - bundles/chamilocore/components/adminlte/css/ionslider/ion.rangeSlider.css |
||||
## - bundles/chamilocore/components/adminlte/css/timepicker/bootstrap-timepicker.css |
||||
# - bundles/chamilocore/components/bootstrap-daterangepicker/daterangepicker-bs3.css |
||||
# - bundles/chamilocore/components/eonasdan-bootstrap-datetimepicker/build/css/bootstrap-datetimepicker.css |
||||
# - bundles/chamilocore/components/adminlte/dist/css/skins/_all-skins.min.css |
||||
# - bundles/chamilocore/components/adminlte/dist/css/AdminLTE.css |
||||
# filters: |
||||
# - cssrewrite |
||||
# output: js/chamilo.css |
||||
# |
||||
# chamilo_js: |
||||
# inputs: |
||||
# - bundles/chamilocore/components/jquery/dist/jquery.js |
||||
# - bundles/chamilocore/components/jquery-ui/jquery-ui.min.js |
||||
## - @bootstrap_js |
||||
# - bundles/chamilocore/components/bootstrap/dist/js/bootstrap.min.js |
||||
# - bundles/chamilocore/components/chosen-bower/chosen.jquery.js |
||||
## - @moment_js |
||||
# - bundles/chamilocore/components/moment/moment.js |
||||
# - bundles/chamilocore/components/fullcalendar/dist/fullcalendar.min.js |
||||
# - bundles/chamilocore/components/jqgrid/js/jquery.jqGrid.js |
||||
# - bundles/chamilocore/components/select2/dist/js/select2.js |
||||
# - bundles/chamilocore/components/eonasdan-bootstrap-datetimepicker/build/js/bootstrap-datetimepicker.min.js |
||||
# - bundles/chamilocore/components/jquery.scrollbar/jquery.scrollbar.js |
||||
# - bundles/chamilocore/components/mediaelement/build/mediaelement-and-player.js |
||||
# - bundles/chamilocore/js/upload.js |
||||
# - bundles/chamilocore/js/pear/qfamsHandler.js |
||||
# - bundles/chamilocore/components/image-map-resizer/js/imageMapResizer.js |
||||
# |
||||
# - bundles/chamilocore/components/blueimp-load-image/js/load-image.all.min.js |
||||
# - bundles/chamilocore/components/blueimp-canvas-to-blob/js/canvas-to-blob.min.js |
||||
# |
||||
# - bundles/chamilocore/js/tag/jquery.fcbkcomplete.js |
||||
# |
||||
# - bundles/chamilocore/components/jquery-file-upload/js/jquery.iframe-transport.js |
||||
# - bundles/chamilocore/components/jquery-file-upload/js/jquery.fileupload.js |
||||
# - bundles/chamilocore/components/jquery-file-upload/js/jquery.fileupload-process.js |
||||
# - bundles/chamilocore/components/jquery-file-upload/js/jquery.fileupload-image.js |
||||
# - bundles/chamilocore/components/jquery-file-upload/js/jquery.fileupload-audio.js |
||||
# - bundles/chamilocore/components/jquery-file-upload/js/jquery.fileupload-video.js |
||||
# - bundles/chamilocore/components/jquery-file-upload/js/jquery.fileupload-validate.js |
||||
# - bundles/chamilocore/components/bootstrap-daterangepicker/daterangepicker.js |
||||
# - bundles/chamilocore/components/adminlte/dist/js/app.js |
||||
# |
||||
# output: js/chamilo.js |
||||
|
||||
|
||||
# see https://sonata-project.org/blog/2012/5/15/assetic-package-configuration |
||||
# |
||||
sonata_jqueryui_js: |
||||
inputs: |
||||
- %kernel.root_dir%/../web/bundles/sonataadmin/vendor/jqueryui/ui/jquery.ui.core.js |
||||
- %kernel.root_dir%/../web/bundles/sonataadmin/vendor/jqueryui/ui/jquery.ui.widget.js |
||||
- %kernel.root_dir%/../web/bundles/sonataadmin/vendor/jqueryui/ui/jquery.ui.mouse.js |
||||
- %kernel.root_dir%/../web/bundles/sonataadmin/vendor/jqueryui/ui/jquery.ui.draggable.js |
||||
- %kernel.root_dir%/../web/bundles/sonataadmin/vendor/jqueryui/ui/jquery.ui.droppable.js |
||||
- %kernel.root_dir%/../web/bundles/sonataadmin/vendor/jqueryui/ui/jquery.ui.resizable.js |
||||
- %kernel.root_dir%/../web/bundles/sonataadmin/vendor/jqueryui/ui/jquery.ui.selectable.js |
||||
- %kernel.root_dir%/../web/bundles/sonataadmin/vendor/jqueryui/ui/jquery.ui.sortable.js |
||||
- %kernel.root_dir%/../web/bundles/sonataadmin/vendor/jqueryui/ui/jquery.ui.effect.js |
||||
# - %kernel.root_dir%/../web/bundles/sonataadmin/vendor/jqueryui/ui/jquery.ui.accordion.js |
||||
# - %kernel.root_dir%/../web/bundles/sonataadmin/vendor/jqueryui/ui/jquery.ui.autocomplete.js |
||||
# - %kernel.root_dir%/../web/bundles/sonataadmin/vendor/jqueryui/ui/jquery.ui.button.js |
||||
# - %kernel.root_dir%/../web/bundles/sonataadmin/vendor/jqueryui/ui/jquery.ui.datepicker.js |
||||
# - %kernel.root_dir%/../web/bundles/sonataadmin/vendor/jqueryui/ui/jquery.ui.dialog.js |
||||
# - %kernel.root_dir%/../web/bundles/sonataadmin/vendor/jqueryui/ui/jquery.ui.effect-blind.js |
||||
# - %kernel.root_dir%/../web/bundles/sonataadmin/vendor/jqueryui/ui/jquery.ui.effect-bounce.js |
||||
# - %kernel.root_dir%/../web/bundles/sonataadmin/vendor/jqueryui/ui/jquery.ui.effect-clip.js |
||||
# - %kernel.root_dir%/../web/bundles/sonataadmin/vendor/jqueryui/ui/jquery.ui.effect-drop.js |
||||
# - %kernel.root_dir%/../web/bundles/sonataadmin/vendor/jqueryui/ui/jquery.ui.effect-explode.js |
||||
# - %kernel.root_dir%/../web/bundles/sonataadmin/vendor/jqueryui/ui/jquery.ui.effect-fade.js |
||||
# - %kernel.root_dir%/../web/bundles/sonataadmin/vendor/jqueryui/ui/jquery.ui.effect-fold.js |
||||
# - %kernel.root_dir%/../web/bundles/sonataadmin/vendor/jqueryui/ui/jquery.ui.effect-highlight.js |
||||
# - %kernel.root_dir%/../web/bundles/sonataadmin/vendor/jqueryui/ui/jquery.ui.effect-pulsate.js |
||||
# - %kernel.root_dir%/../web/bundles/sonataadmin/vendor/jqueryui/ui/jquery.ui.effect-scale.js |
||||
# - %kernel.root_dir%/../web/bundles/sonataadmin/vendor/jqueryui/ui/jquery.ui.effect-shake.js |
||||
# - %kernel.root_dir%/../web/bundles/sonataadmin/vendor/jqueryui/ui/jquery.ui.effect-slide.js |
||||
# - %kernel.root_dir%/../web/bundles/sonataadmin/vendor/jqueryui/ui/jquery.ui.effect-transfer.js |
||||
# - %kernel.root_dir%/../web/bundles/sonataadmin/vendor/jqueryui/ui/jquery.ui.menu.js |
||||
- %kernel.root_dir%/../web/bundles/sonataadmin/vendor/jqueryui/ui/jquery.ui.position.js |
||||
# - %kernel.root_dir%/../web/bundles/sonataadmin/vendor/jqueryui/ui/jquery.ui.progressbar.js |
||||
# - %kernel.root_dir%/../web/bundles/sonataadmin/vendor/jqueryui/ui/jquery.ui.slider.js |
||||
# - %kernel.root_dir%/../web/bundles/sonataadmin/vendor/jqueryui/ui/jquery.ui.spinner.js |
||||
# - %kernel.root_dir%/../web/bundles/sonataadmin/vendor/jqueryui/ui/jquery.ui.tabs.js |
||||
- %kernel.root_dir%/../web/bundles/sonataadmin/vendor/jqueryui/ui/jquery.ui.tooltip.js |
||||
# - %kernel.root_dir%/../web/bundles/sonataadmin/vendor/jqueryui/ui/i18n/jquery-ui-i18n.js |
||||
|
||||
# filters: |
||||
# - yui_js |
||||
|
||||
sonata_jqueryui_css: |
||||
inputs: |
||||
- %kernel.root_dir%/../web/bundles/sonataadmin/vendor/jqueryui/themes/base/jquery-ui.css |
||||
|
||||
filters: |
||||
- cssrewrite |
||||
# - yui_css |
||||
|
||||
sonata_formatter_js: |
||||
inputs: |
||||
# do not uncomment this, ckeditor behave badly when compacted... |
||||
#- %kernel.root_dir%/../web/bundles/sonataformatter/vendor/ckeditor/ckeditor.js |
||||
- %kernel.root_dir%/../web/bundles/sonataformatter/vendor/markitup-markitup/markitup/jquery.markitup.js |
||||
- %kernel.root_dir%/../web/bundles/sonataformatter/markitup/sets/markdown/set.js |
||||
- %kernel.root_dir%/../web/bundles/sonataformatter/markitup/sets/html/set.js |
||||
- %kernel.root_dir%/../web/bundles/sonataformatter/markitup/sets/textile/set.js |
||||
|
||||
# filters: |
||||
# - yui_js |
||||
|
||||
sonata_formatter_css: |
||||
inputs: |
||||
- %kernel.root_dir%/../web/bundles/sonataformatter/markitup/skins/sonata/style.css |
||||
- %kernel.root_dir%/../web/bundles/sonataformatter/markitup/sets/markdown/style.css |
||||
- %kernel.root_dir%/../web/bundles/sonataformatter/markitup/sets/html/style.css |
||||
- %kernel.root_dir%/../web/bundles/sonataformatter/markitup/sets/textile/style.css |
||||
|
||||
filters: |
||||
- cssrewrite |
||||
# - yui_css |
||||
|
||||
sonata_admin_js: |
||||
inputs: |
||||
- %kernel.root_dir%/../web/bundles/sonatacore/vendor/jquery/dist/jquery.js |
||||
- %kernel.root_dir%/../web/bundles/sonataadmin/vendor/jquery.scrollTo/jquery.scrollTo.js |
||||
# - %kernel.root_dir%/../web/bundles/sonataadmin/vendor/bootstrap-datepicker/js/bootstrap-datepicker.js |
||||
- %kernel.root_dir%/../web/bundles/sonatacore/vendor/moment/min/moment.min.js |
||||
- %kernel.root_dir%/../web/bundles/sonatacore/vendor/bootstrap/dist/js/bootstrap.js |
||||
- %kernel.root_dir%/../web/bundles/sonatacore/vendor/eonasdan-bootstrap-datetimepicker/build/js/bootstrap-datetimepicker.min.js |
||||
- %kernel.root_dir%/../web/bundles/sonataadmin/vendor/jquery-form/jquery.form.js |
||||
- %kernel.root_dir%/../web/bundles/sonataadmin/jquery/jquery.confirmExit.js |
||||
- %kernel.root_dir%/../web/bundles/sonataadmin/vendor/x-editable/dist/bootstrap3-editable/js/bootstrap-editable.js |
||||
- %kernel.root_dir%/../web/bundles/sonatacore/vendor/select2/select2.js |
||||
- %kernel.root_dir%/../web/bundles/sonataadmin/vendor/admin-lte/dist/js/app.min.js |
||||
- %kernel.root_dir%/../web/bundles/sonataadmin/vendor/iCheck/icheck.min.js |
||||
- %kernel.root_dir%/../web/bundles/sonataadmin/vendor/waypoints/lib/jquery.waypoints.js |
||||
- %kernel.root_dir%/../web/bundles/sonataadmin/vendor/waypoints/lib/shortcuts/sticky.js |
||||
- %kernel.root_dir%/../web/bundles/sonataadmin/vendor/slimScroll/jquery.slimscroll.min.js |
||||
- %kernel.root_dir%/../web/bundles/sonatapage/sonata-page.back.js |
||||
- %kernel.root_dir%/../web/bundles/sonataadmin/Admin.js |
||||
- %kernel.root_dir%/../web/bundles/sonataadmin/treeview.js |
||||
|
||||
# filters: |
||||
# - yui_js |
||||
|
||||
sonata_admin_css: |
||||
inputs: |
||||
- %kernel.root_dir%/../web/bundles/sonatacore/vendor/bootstrap/dist/css/bootstrap.min.css |
||||
- %kernel.root_dir%/../web/bundles/sonatacore/vendor/components-font-awesome/css/font-awesome.min.css |
||||
- %kernel.root_dir%/../web/bundles/sonatacore/vendor/ionicons/css/ionicons.min.css |
||||
- %kernel.root_dir%/../web/bundles/sonataadmin/vendor/admin-lte/dist/css/AdminLTE.css |
||||
- %kernel.root_dir%/../web/bundles/sonataadmin/vendor/iCheck/skins/square/blue.css |
||||
- %kernel.root_dir%/../web/bundles/sonataadmin/vendor/jqueryui/themes/flick/jquery-ui.min.css |
||||
- %kernel.root_dir%/../web/bundles/sonatacore/vendor/select2/select2.css |
||||
- %kernel.root_dir%/../web/bundles/sonatacore/vendor/select2/select2-bootstrap.css |
||||
- %kernel.root_dir%/../web/bundles/sonataadmin/vendor/x-editable/dist/bootstrap3-editable/css/bootstrap-editable.css |
||||
- %kernel.root_dir%/../web/bundles/sonatacore/vendor/eonasdan-bootstrap-datetimepicker/build/css/bootstrap-datetimepicker.min.css |
||||
- %kernel.root_dir%/../web/bundles/sonataadmin/css/styles.css |
||||
- %kernel.root_dir%/../web/bundles/sonataadmin/css/layout.css |
||||
- %kernel.root_dir%/../web/bundles/sonataadmin/css/tree.css |
||||
- %kernel.root_dir%/../web/bundles/sonatapage/sonata-page.back.css |
||||
|
||||
filters: |
||||
- cssrewrite |
||||
# - yui_css |
||||
|
||||
sonata_front_js: |
||||
inputs: |
||||
- %kernel.root_dir%/../web/bundles/sonatacore/vendor/jquery/dist/jquery.js |
||||
- %kernel.root_dir%/../web/bundles/sonatacore/vendor/bootstrap/dist/js/bootstrap.js |
||||
# - %kernel.root_dir%/../web/bundles/sonataproduct/js/product.js |
||||
- %kernel.root_dir%/../web/bundles/sonatacore/js/base.js |
||||
- %kernel.root_dir%/../web/bundles/sonatacore/vendor/select2/select2.min.js |
||||
# - %kernel.root_dir%/../web/bundles/sonatademo/js/demo.js |
||||
|
||||
# filters: |
||||
# - yui_js |
||||
|
||||
sonata_front_css: |
||||
inputs: |
||||
- %kernel.root_dir%/../web/bundles/sonatacore/vendor/bootstrap/dist/css/bootstrap.min.css |
||||
- %kernel.root_dir%/../web/bundles/sonatacore/vendor/select2/select2.css |
||||
# - %kernel.root_dir%/../web/bundles/mopabootstrap/css/datepicker.css |
||||
# - %kernel.root_dir%/../web/bundles/sonatademo/css/demo.css |
||||
|
||||
filters: |
||||
- cssrewrite |
||||
# - yui_css |
@ -1,28 +0,0 @@ |
||||
imports: |
||||
- { resource: config.yml } |
||||
|
||||
#framework: |
||||
# validation: |
||||
# cache: validator.mapping.cache.apc |
||||
# serializer: |
||||
# cache: serializer.mapping.cache.apc |
||||
|
||||
#doctrine: |
||||
# orm: |
||||
# metadata_cache_driver: apc |
||||
# result_cache_driver: apc |
||||
# query_cache_driver: apc |
||||
|
||||
monolog: |
||||
handlers: |
||||
main: |
||||
type: fingers_crossed |
||||
action_level: error |
||||
handler: nested |
||||
nested: |
||||
type: stream |
||||
path: "%kernel.logs_dir%/%kernel.environment%.log" |
||||
level: debug |
||||
console: |
||||
type: console |
||||
|
@ -1,14 +0,0 @@ |
||||
fos_user: |
||||
db_driver: orm # can be orm or odm |
||||
firewall_name: main |
||||
|
||||
# if you change the class configuration, please also alter the sonata_user.yml file |
||||
user_class: Chamilo\PageBundle\Entity\User |
||||
|
||||
group: |
||||
group_class: Chamilo\UserBundle\Entity\Group |
||||
group_manager: sonata.user.orm.group_manager |
||||
|
||||
service: |
||||
user_manager: sonata.user.orm.user_manager |
||||
|
@ -1,210 +0,0 @@ |
||||
sonata_notification: |
||||
class: |
||||
message: Chamilo\NotificationBundle\Entity\Message |
||||
sonata_admin: |
||||
# default value, change it to sonata.admin.security.handler.acl to use ACL |
||||
security: |
||||
handler: sonata.admin.security.handler.role |
||||
title: Chamilo #%sonata_admin.title% |
||||
title_logo: css/themes/chamilo/images/header-logo.png #%sonata_admin.logo_title% |
||||
options: |
||||
html5_validate: false # does not use html5 validation |
||||
pager_links: 5 # pager max links to display |
||||
|
||||
templates: |
||||
# default global templates |
||||
# the layout template include javascript/stylesheet to the formatter bundle, |
||||
# if you don't need it use the default one: SonataAdminBundle::standard_layout.html. |
||||
layout: ChamiloAdminBundle::layout.html.twig |
||||
# layout: ApplicationSonataAdminBundle::standard_layout.html.twig |
||||
#layout: ApplicationSonataAdminBundle::demo_layout.html.twig |
||||
|
||||
# layout: SonataAdminBundle::standard_layout.html.twig |
||||
ajax: SonataAdminBundle::ajax_layout.html.twig |
||||
|
||||
# default value if done set, actions templates, should extends a global templates |
||||
list: SonataAdminBundle:CRUD:list.html.twig |
||||
show: SonataAdminBundle:CRUD:show.html.twig |
||||
edit: SonataAdminBundle:CRUD:edit.html.twig |
||||
# user_block: ChamiloCoreBundle:Admin:admin_topnav.html.twig |
||||
|
||||
extensions: |
||||
# cmf_core.admin_extension.translatable: |
||||
# implements: |
||||
# - Symfony\Cmf\Bundle\CoreBundle\Translatable\TranslatableInterface |
||||
# |
||||
# cmf_core.admin_extension.publish_workflow.publishable: |
||||
# implements: |
||||
# - Symfony\Cmf\Bundle\CoreBundle\PublishWorkflow\PublishableInterface |
||||
# cmf_core.admin_extension.publish_workflow.time_period: |
||||
# implements: |
||||
# - Symfony\Cmf\Bundle\CoreBundle\PublishWorkflow\PublishTimePeriodInterface |
||||
|
||||
dashboard: |
||||
blocks: |
||||
- { position: left, type: sonata.admin.block.admin_list } |
||||
# - { position: right, type: sonata.timeline.block.timeline, settings: { context: SONATA_ADMIN, max_per_page: 25, template: 'ChamiloTimelineBundle:Block:timeline.html.twig',}} |
||||
# - { position: right, type: sonata.admin_doctrine_orm.block.audit} |
||||
|
||||
# - { position: center, type: sonata.block.service.text, settings: { content: "<h2>Welcome!</h2> You can customize this dashboard by editing the sonata_admin.yml file. The current dashboard presents the recent items from the NewsBundle and a timeline with the latest action"} } |
||||
#- { position: center, type: sonata.news.block.recent_posts, settings: { title: Recent Posts, number: 7, mode: admin }} |
||||
# - { position: left, type: sonata.block.service.text, settings: { content: "<div class='panel panel-default'><div class='panel-heading'><h3 class='panel-title'>Welcome!</h3></div><div class='panel-body'>You can customize this dashboard by editing the <code>sonata_admin.yml</code> file. The current dashboard presents the recent items from the NewsBundle and a non-statistical e-commerce information.</div></div>"} } |
||||
# - { position: center, type: sonata.news.block.recent_comments, settings: { title: Recent Comments, number: 7, mode: admin }} |
||||
#- { position: right, type: sonata.order.block.recent_orders, settings: { title: Recent Orders, number: 5, mode: admin }} |
||||
#- { position: right, type: sonata.customer.block.recent_customers, settings: { title: Recent Customers, number: 5, mode: admin }} |
||||
#- { position: right, type: sonata.block.service.rss, settings: { title: Sonata Project's Feeds, url: http://sonata-project.org/blog/archive.rss }} |
||||
|
||||
groups: |
||||
sonata.admin.group.content: |
||||
label: Content |
||||
label_catalogue: SonataDemoBundle |
||||
#icon: '<i class="fa fa-th"></i>' |
||||
items: |
||||
- sonata.page.admin.page |
||||
# - sonata.news.admin.comment |
||||
# - sonata.news.admin.post |
||||
- sonata.media.admin.media |
||||
- sonata.media.admin.gallery |
||||
# - sonata.comment.admin.thread |
||||
|
||||
sonata.admin.group.site_builder: |
||||
label: Site Builder |
||||
label_catalogue: SonataDemoBundle |
||||
#icon: '<i class="fa fa-puzzle-piece"></i>' |
||||
items: |
||||
- sonata.page.admin.page |
||||
- sonata.page.admin.site |
||||
- sonata.admin.contact_category |
||||
|
||||
sonata.admin.group.faq: |
||||
label: FAQ |
||||
label_catalogue: Faq |
||||
#icon: '<i class="fa fa-puzzle-piece"></i>' |
||||
items: |
||||
- sonata.admin.faq_category |
||||
- sonata.admin.faq_question |
||||
|
||||
sonata.admin.group.classification: |
||||
label: sonata_classification |
||||
label_catalogue: SonataClassificationBundle |
||||
#icon: '<i class="fa fa-sitemap"></i>' |
||||
items: |
||||
- sonata.classification.admin.category |
||||
- sonata.classification.admin.tag |
||||
- sonata.classification.admin.collection |
||||
|
||||
sonata.admin.group.administration: |
||||
label: sonata_administration |
||||
label_catalogue: SonataAdminBundle |
||||
#icon: '<i class="fa fa-cogs"></i>' |
||||
items: |
||||
# - sonata.notification.admin.message |
||||
# - sonata.admin.settings_current |
||||
# - sonata.admin.tool |
||||
sonata.admin.group.user: |
||||
label: Users |
||||
#icon: '<i class="fa fa-play-circle"></i>' |
||||
label_catalogue: SonataAdminBundle |
||||
items: |
||||
- sonata.user.admin.user |
||||
- sonata.user.admin.group |
||||
# - sonata.admin.user_group |
||||
# - sonata.admin.user_field |
||||
# - sonata.admin.user_field_values |
||||
# sonata.admin.group.course: |
||||
# label: Courses |
||||
# #icon: '<i class="fa fa-play-circle"></i>' |
||||
# label_catalogue: SonataAdminBundle |
||||
# items: |
||||
## - sonata.admin.course |
||||
# - sonata.admin.course_category |
||||
# - sonata.admin.course_request |
||||
# - sonata.admin.c_group_info |
||||
## - sonata.admin.notebook |
||||
# sonata.admin.group.session: |
||||
# label: Sessions |
||||
# #icon: '<i class="fa fa-play-circle"></i>' |
||||
# label_catalogue: SonataAdminBundle |
||||
# items: |
||||
# - sonata.admin.session |
||||
# - sonata.admin.session_category |
||||
# - sonata.admin.career |
||||
# - sonata.admin.promotion |
||||
# sonata.admin.group.url: |
||||
# label: URLs |
||||
# #icon: '<i class="fa fa-play-circle"></i>' |
||||
# label_catalogue: SonataAdminBundle |
||||
# items: |
||||
# - sonata.admin.access_url |
||||
|
||||
assets: |
||||
stylesheets: |
||||
# The sandbox includes default pre-optimized version of some css and js |
||||
# So you can either use them, and add your custom assets here |
||||
# ~ or ~ |
||||
# tweak the assetic.yml and the following lines |
||||
- assetic/sonata_admin_css.css |
||||
- assetic/sonata_formatter_css.css |
||||
- assetic/sonata_jqueryui_css.css |
||||
- bundles/sonataadmin/vendor/admin-lte/dist/css/skins/skin-black.min.css |
||||
|
||||
# Default admin assets |
||||
# - bundles/sonatacore/vendor/bootstrap/dist/css/bootstrap.min.css |
||||
# - bundles/sonatacore/vendor/components-font-awesome/css/font-awesome.min.css |
||||
# - bundles/sonatacore/vendor/ionicons/css/ionicons.min.css |
||||
# - bundles/sonataadmin/vendor/admin-lte/dist/css/AdminLTE.min.css |
||||
# - bundles/sonataadmin/vendor/iCheck/skins/flat/blue.css |
||||
# - bundles/sonatacore/vendor/eonasdan-bootstrap-datetimepicker/build/css/bootstrap-datetimepicker.min.css |
||||
# - bundles/sonataadmin/vendor/jqueryui/themes/base/jquery-ui.css |
||||
# - bundles/sonatacore/vendor/select2/select2.css |
||||
# - bundles/sonatacore/vendor/select2-bootstrap-css/select2-bootstrap.min.css |
||||
# - bundles/sonataadmin/vendor/x-editable/dist/bootstrap3-editable/css/bootstrap-editable.css |
||||
# - bundles/sonataadmin/css/styles.css |
||||
# - bundles/sonataadmin/css/layout.css |
||||
# - bundles/sonataadmin/css/tree.css |
||||
|
||||
# Formatter assets |
||||
# - bundles/sonataformatter/markitup/skins/sonata/style.css |
||||
# - bundles/sonataformatter/markitup/sets/markdown/style.css |
||||
# - bundles/sonataformatter/markitup/sets/html/style.css |
||||
# - bundles/sonataformatter/markitup/sets/textile/style.css |
||||
|
||||
# Page assets |
||||
# - bundles/sonatapage/sonata-page.back.min.css |
||||
|
||||
|
||||
javascripts: |
||||
- assetic/sonata_admin_js.js |
||||
# - bundles/sonataadmin/Admin.js |
||||
# - bundles/sonataadmin/treeview.js |
||||
- assetic/sonata_jqueryui_js.js |
||||
- assetic/sonata_formatter_js.js |
||||
- bundles/sonataformatter/vendor/ckeditor/ckeditor.js |
||||
|
||||
# Default admin assets |
||||
# - bundles/sonatacore/vendor/jquery/dist/jquery.min.js |
||||
# - bundles/sonataadmin/vendor/jquery.scrollTo/jquery.scrollTo.min.js |
||||
# - bundles/sonatacore/vendor/moment/min/moment.min.js |
||||
# - bundles/sonatacore/vendor/bootstrap/dist/js/bootstrap.min.js |
||||
# - bundles/sonatacore/vendor/eonasdan-bootstrap-datetimepicker/build/js/bootstrap-datetimepicker.min.js |
||||
# - bundles/sonataadmin/vendor/jqueryui/ui/minified/jquery-ui.min.js |
||||
# - bundles/sonataadmin/vendor/jqueryui/ui/minified/i18n/jquery-ui-i18n.min.js |
||||
# - bundles/sonataadmin/jquery/jquery.form.js |
||||
# - bundles/sonataadmin/jquery/jquery.confirmExit.js |
||||
# - bundles/sonataadmin/vendor/x-editable/dist/bootstrap3-editable/js/bootstrap-editable.min.js |
||||
# - bundles/sonatacore/vendor/select2/select2.min.js |
||||
# - bundles/sonataadmin/vendor/admin-lte/dist/js/app.min.js |
||||
# - bundles/sonataadmin/vendor/iCheck/icheck.min.js |
||||
# - bundles/sonataadmin/vendor/slimScroll/jquery.slimscroll.min.js |
||||
# - bundles/sonataadmin/Admin.js |
||||
# - bundles/sonataadmin/treeview.js |
||||
|
||||
# Formatter assets |
||||
# - bundles/sonataformatter/vendor/markitup-markitup/markitup/jquery.markitup.js |
||||
# - bundles/sonataformatter/markitup/sets/markdown/set.js |
||||
# - bundles/sonataformatter/markitup/sets/html/set.js |
||||
# - bundles/sonataformatter/markitup/sets/textile/set.js |
||||
|
||||
# Page assets |
||||
# - bundles/sonatapage/sonata-page.back.js |
||||
|
@ -1,80 +0,0 @@ |
||||
sonata_block: |
||||
context_manager: sonata.page.block.context_manager |
||||
default_contexts: [sonata_page_bundle] |
||||
|
||||
http_cache: |
||||
listener: true |
||||
# menus: |
||||
# "ChamiloCoreBundle:MainMenuBuilder:mainMenu": "Main Menu" |
||||
# #"SonataDemoBundle:Builder:mainMenu": "Main Menu" |
||||
|
||||
blocks: |
||||
# Chamilo blocks |
||||
chamilo_core.block.breadcrumb: ~ |
||||
chamilo_core.block.course: ~ |
||||
chamilo_core.block.skill: ~ |
||||
|
||||
sonata.admin.block.stats: |
||||
contexts: [admin] |
||||
sonata.admin.block.admin_list: |
||||
contexts: [admin] |
||||
sonata.admin.block.search_result: |
||||
contexts: [admin] |
||||
|
||||
sonata.admin_doctrine_orm.block.audit: |
||||
contexts: [admin] |
||||
|
||||
# Builtin Block |
||||
sonata.block.service.text: |
||||
sonata.block.service.container: |
||||
sonata.block.service.rss: |
||||
sonata.block.service.menu: |
||||
sonata.block.service.template: |
||||
|
||||
# PageBundle's Blocks |
||||
sonata.page.block.container: |
||||
# cache: sonata.cache.memcached |
||||
# cache: sonata.cache.predis |
||||
# cache: sonata.page.cache.esi # if you are using the PageBundle |
||||
# cache: sonata.block.cache.esi # if you are using the BlockBundle without the PageBundle |
||||
sonata.page.block.children_pages: |
||||
sonata.page.block.breadcrumb: |
||||
|
||||
# MediaBundle's Blocks |
||||
sonata.media.block.media: |
||||
sonata.media.block.gallery: |
||||
sonata.media.block.feature_media: |
||||
|
||||
# NewsBundle's Blocks |
||||
sonata.news.block.recent_comments: |
||||
sonata.news.block.recent_posts: |
||||
|
||||
# TimelineBundle's Blocks |
||||
sonata.timeline.block.timeline: |
||||
contexts: [admin] |
||||
|
||||
# UserBundle's Blocks |
||||
sonata.user.block.account: |
||||
cache: sonata.page.cache.js_async |
||||
#cache: sonata.page.cache.esi |
||||
contexts: [user] |
||||
sonata.user.block.menu: |
||||
contexts: [user] |
||||
|
||||
# SeoBundle's Blocks |
||||
sonata.seo.block.social.container: |
||||
sonata.seo.block.email.share_button: |
||||
sonata.seo.block.facebook.like_box: |
||||
sonata.seo.block.facebook.like_button: |
||||
sonata.seo.block.facebook.send_button: |
||||
sonata.seo.block.facebook.share_button: |
||||
sonata.seo.block.pinterest.pin_button: |
||||
sonata.seo.block.twitter.share_button: |
||||
sonata.seo.block.twitter.follow_button: |
||||
sonata.seo.block.twitter.hashtag_button: |
||||
sonata.seo.block.twitter.mention_button: |
||||
sonata.seo.block.twitter.embed: |
||||
|
||||
# Formatter |
||||
sonata.formatter.block.formatter: |
||||
sonata.seo.block.breadcrumb.homepage: |
@ -1,33 +0,0 @@ |
||||
# |
||||
# 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} |
||||
# |
||||
# 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} |
@ -1,15 +0,0 @@ |
||||
sonata_classification: |
||||
class: |
||||
tag: Chamilo\ClassificationBundle\Entity\Tag |
||||
category: Chamilo\ClassificationBundle\Entity\Category |
||||
context: Chamilo\ClassificationBundle\Entity\Context |
||||
collection: Chamilo\ClassificationBundle\Entity\Collection |
||||
media: Chamilo\MediaBundle\Entity\Media |
||||
|
||||
|
||||
#doctrine: |
||||
# orm: |
||||
# entity_managers: |
||||
# default: |
||||
# mappings: |
||||
# ChamiloClassificationBundle: ~ |
@ -1,35 +0,0 @@ |
||||
sonata_core: |
||||
form_type: horizontal |
||||
|
||||
flashmessage: |
||||
success: |
||||
types: |
||||
- { type: my_custom_bundle_success } |
||||
- { type: my_other_bundle_success } |
||||
|
||||
warning: |
||||
types: |
||||
- { type: my_custom_bundle_warning } |
||||
- { type: my_other_bundle_warning } |
||||
error: |
||||
css_class: danger # optionally, a CSS class can be defined |
||||
types: |
||||
- { type: my_custom_bundle } |
||||
|
||||
confirmation: # You can add custom types too |
||||
types: |
||||
- { type: custom_bundle_type } |
||||
|
||||
confirmation: # You can add custom types too |
||||
types: |
||||
- { type: custom_bundle_type } |
||||
|
||||
confirm: # You can add custom types too |
||||
types: |
||||
- { type: custom_bundle_type } |
||||
normal: |
||||
types: |
||||
- { type: custom_bundle_type } |
||||
success: # You can add custom types too |
||||
types: |
||||
- { type: custom_bundle_type } |
@ -1,35 +0,0 @@ |
||||
# |
||||
# more information can be found here http://sonata-project.org/bundles/formatter |
||||
# |
||||
sonata_formatter: |
||||
formatters: |
||||
markdown: |
||||
service: sonata.formatter.text.markdown |
||||
extensions: |
||||
- sonata.formatter.twig.control_flow |
||||
- sonata.formatter.twig.gist |
||||
- sonata.media.formatter.twig |
||||
|
||||
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 |
||||
|
||||
ckeditor: |
||||
templates: |
||||
browser: 'SonataFormatterBundle:Ckeditor:browser.html.twig' |
||||
upload: 'SonataFormatterBundle:Ckeditor:upload.html.twig' |
@ -1,12 +0,0 @@ |
||||
# |
||||
# more information can be found here http://sonata-project.org/bundles/intl |
||||
# |
||||
sonata_intl: |
||||
locale: ~ |
||||
timezone: |
||||
# if service is left blank, the chain detector will be used with detectors |
||||
# defined in the dedicated section |
||||
service: ~ |
||||
detectors: |
||||
- sonata.intl.timezone_detector.user # default value if SonataUserBundle is available |
||||
- sonata.intl.timezone_detector.locale # default value |
@ -1,186 +0,0 @@ |
||||
|
||||
sonata_media: |
||||
class: |
||||
media: Chamilo\MediaBundle\Entity\Media |
||||
gallery: Chamilo\MediaBundle\Entity\Gallery |
||||
gallery_has_media: Chamilo\MediaBundle\Entity\GalleryHasMedia |
||||
category: Chamilo\ClassificationBundle\Entity\Category |
||||
|
||||
db_driver: doctrine_orm # | doctrine_mongodb |
||||
default_context: default |
||||
contexts: |
||||
default: # the default context is mandatory |
||||
download: |
||||
mode: http # X-Sendfile | http |
||||
providers: |
||||
- sonata.media.provider.dailymotion |
||||
- sonata.media.provider.youtube |
||||
- sonata.media.provider.image |
||||
- sonata.media.provider.file |
||||
- sonata.media.provider.vimeo |
||||
|
||||
formats: |
||||
small: { width: 100, quality: 100} |
||||
big: { width: 970 , quality: 100} |
||||
|
||||
course: |
||||
providers: |
||||
- sonata.media.provider.dailymotion |
||||
- sonata.media.provider.youtube |
||||
- sonata.media.provider.image |
||||
- sonata.media.provider.file |
||||
- sonata.media.provider.vimeo |
||||
formats: |
||||
small: { width: 100, quality: 100} |
||||
big: { width: 970 , quality: 100} |
||||
news: |
||||
providers: |
||||
- sonata.media.provider.dailymotion |
||||
- sonata.media.provider.youtube |
||||
- sonata.media.provider.image |
||||
|
||||
formats: |
||||
abstract: { width: 100, quality: 100} |
||||
wide: { width: 820, quality: 100} |
||||
|
||||
sonata_collection: |
||||
providers: |
||||
- sonata.media.provider.image |
||||
|
||||
formats: |
||||
preview: { width: 100, quality: 100} |
||||
wide: { width: 820, quality: 100} |
||||
|
||||
sonata_category: |
||||
providers: |
||||
- sonata.media.provider.image |
||||
|
||||
formats: |
||||
preview: { width: 100, quality: 100} |
||||
wide: { width: 820, quality: 100} |
||||
|
||||
user: |
||||
providers: |
||||
- sonata.media.provider.image |
||||
|
||||
formats: |
||||
small: { width: 100, quality: 100} |
||||
big: { width: 970 , quality: 100} |
||||
|
||||
cdn: |
||||
# define the public base url for the uploaded media |
||||
server: |
||||
path: %url_append%%sonata_media.cdn.host% |
||||
|
||||
filesystem: |
||||
# define where the uploaded file will be stored |
||||
local: |
||||
directory: %kernel.root_dir%/../web/uploads/media |
||||
create: true |
||||
|
||||
providers: |
||||
# ... |
||||
file: |
||||
# the resizer must be set to false, otherwhise this can delete icon files from the fs |
||||
resizer: false |
||||
image: |
||||
thumbnail: sonata.media.thumbnail.format # default value |
||||
# thumbnail: sonata.media.thumbnail.consumer.format # can be used to dispatch the resize action to async task |
||||
# thumbnail: sonata.media.thumbnail.liip_imagine # use the LiipImagineBundle to resize the image |
||||
vimeo: |
||||
thumbnail: sonata.media.thumbnail.format # default value |
||||
# thumbnail: sonata.media.thumbnail.consumer.format # can be used to dispatch the resize action to async task |
||||
# thumbnail: sonata.media.thumbnail.liip_imagine # use the LiipImagineBundle to resize the image |
||||
youtube: |
||||
thumbnail: sonata.media.thumbnail.format # default value |
||||
# thumbnail: sonata.media.thumbnail.consumer.format # can be used to dispatch the resize action to async task |
||||
# thumbnail: sonata.media.thumbnail.liip_imagine # use the LiipImagineBundle to resize the image |
||||
dailymotion: |
||||
thumbnail: sonata.media.thumbnail.format # default value |
||||
# thumbnail: sonata.media.thumbnail.consumer.format # can be used to dispatch the resize action to async task |
||||
# thumbnail: sonata.media.thumbnail.liip_imagine # use the LiipImagineBundle to resize the image |
||||
|
||||
pixlr: |
||||
enabled: true |
||||
referrer: App |
||||
|
||||
resizer: |
||||
simple: |
||||
# mode: outbound |
||||
mode: inset |
||||
|
||||
# |
||||
# The LiipImagineBundle can be used if you want to convert on demand an image |
||||
# to a specific format. (ie a controller render the file) |
||||
# more information can be found here : https://github.com/liip/LiipImagineBundle |
||||
# |
||||
#liip_imagine: |
||||
# filter_sets: |
||||
# |
||||
# # this configuration match the sonata_media configuration format definition |
||||
# sonata_product_preview: |
||||
# quality: 75 |
||||
# controller_action: 'SonataMediaBundle:Media:liipImagineFilter' |
||||
# filters: |
||||
# thumbnail: { size: [100, 100], mode: outbound } |
||||
# |
||||
# sonata_product_small: |
||||
# quality: 75 |
||||
# controller_action: 'SonataMediaBundle:Media:liipImagineFilter' |
||||
# filters: |
||||
# thumbnail: { size: [200, 100], mode: outbound } |
||||
# |
||||
# sonata_product_large: |
||||
# quality: 75 |
||||
# controller_action: 'SonataMediaBundle:Media:liipImagineFilter' |
||||
# filters: |
||||
# thumbnail: { size: [600, 100], mode: outbound } |
||||
# |
||||
# news_abstract: |
||||
# quality: 75 |
||||
# controller_action: 'SonataMediaBundle:Media:liipImagineFilter' |
||||
# filters: |
||||
# thumbnail: { size: [100, 100], mode: outbound } |
||||
# |
||||
# news_wide: |
||||
# quality: 75 |
||||
# controller_action: 'SonataMediaBundle:Media:liipImagineFilter' |
||||
# filters: |
||||
# thumbnail: { size: [820, 100], mode: outbound } |
||||
# |
||||
# sonata_collection_preview: |
||||
# quality: 75 |
||||
# controller_action: 'SonataMediaBundle:Media:liipImagineFilter' |
||||
# filters: |
||||
# thumbnail: { size: [100, 100], mode: outbound } |
||||
# |
||||
# sonata_collection_wide: |
||||
# quality: 75 |
||||
# controller_action: 'SonataMediaBundle:Media:liipImagineFilter' |
||||
# filters: |
||||
# thumbnail: { size: [820, 100], mode: outbound } |
||||
# |
||||
# sonata_category_preview: |
||||
# quality: 75 |
||||
# controller_action: 'SonataMediaBundle:Media:liipImagineFilter' |
||||
# filters: |
||||
# thumbnail: { size: [100, 100], mode: outbound } |
||||
# |
||||
# sonata_category_wide: |
||||
# quality: 75 |
||||
# controller_action: 'SonataMediaBundle:Media:liipImagineFilter' |
||||
# filters: |
||||
# thumbnail: { size: [820, 100], mode: outbound } |
||||
# |
||||
# default_small: |
||||
# quality: 75 |
||||
# controller_action: 'SonataMediaBundle:Media:liipImagineFilter' |
||||
# filters: |
||||
# thumbnail: { size: [100, 100], mode: outbound } |
||||
# |
||||
# default_big: |
||||
# quality: 75 |
||||
# controller_action: 'SonataMediaBundle:Media:liipImagineFilter' |
||||
# filters: |
||||
# thumbnail: { size: [820, 70], mode: outbound } |
||||
|
@ -1,184 +0,0 @@ |
||||
# more information can be found here http://sonata-project.org/bundles/page |
||||
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 |
||||
|
||||
sonata_page: |
||||
class: |
||||
page: Chamilo\PageBundle\Entity\Page |
||||
site: Chamilo\PageBundle\Entity\Site |
||||
block: Chamilo\PageBundle\Entity\Block |
||||
snapshot: Chamilo\PageBundle\Entity\Snapshot |
||||
|
||||
multisite: host_with_path_by_locale # host |
||||
use_streamed_response: false # set the value to false in debug mode or if the reverse proxy does not handle streamed response |
||||
|
||||
ignore_uri_patterns: |
||||
- ^/administration(.*) # sonata admin |
||||
- ^/admin(.*) # chamilo admin |
||||
- ^/main(.*) |
||||
- /(.*)/(.*)administration(.*)/ |
||||
- ^/api/(.*) |
||||
- ^install |
||||
- ^/install/(.*) |
||||
- ^/packages/(.*) |
||||
- ^/package/(.*) |
||||
- install.php |
||||
- install.php/(.*) |
||||
- install.php/packages/(.*) |
||||
- install.php/package/(.*) |
||||
- install.php/(.*)/(.*) |
||||
- ^/bundles/(.*) |
||||
- ^/_wdt/(.*) |
||||
- ^/_profiler/(.*) |
||||
- ^/userportal |
||||
- ^/userportal/(.*) |
||||
- ^/js/(.*) |
||||
- ^/faq/(.*) |
||||
- ^/faq |
||||
- ^/courses/(.*) |
||||
- ^/front/editor |
||||
- ^/contact(.*) # sonata admin |
||||
- ^/cms/pages/latest |
||||
- ^/cms/pages/latest/(.*) |
||||
|
||||
ignore_route_patterns: |
||||
- (.*)administration(.*) # ignore admin route, ie route containing 'admin' # sonata admin |
||||
- ^_(.*) # ignore symfony routes |
||||
- fos_user(.*) |
||||
- sylius_flow(.*) |
||||
|
||||
ignore_routes: |
||||
- home |
||||
- elfinder |
||||
- login |
||||
- logout |
||||
- fos_js_routing_js |
||||
- _settings |
||||
- main |
||||
- sonata_page_cache_esi |
||||
- sonata_page_cache_ssi |
||||
- sonata_page_js_sync_cache |
||||
- sonata_page_js_async_cache |
||||
- sonata_cache_esi |
||||
- sonata_cache_ssi |
||||
- sonata_cache_js_async |
||||
- sonata_cache_js_sync |
||||
- sonata_cache_apc |
||||
- chamilo_installer_flow |
||||
- sylius_flow_start |
||||
- sylius_flow_display |
||||
- sylius_flow_forward |
||||
- chamilo_core_user_user_mycourses |
||||
- chamilo_page_page_getlatestpages |
||||
|
||||
cache_invalidation: |
||||
service: sonata.page.cache.invalidation.simple |
||||
recorder: sonata.page.cache.recorder |
||||
classes: |
||||
"Chamilo\PageBundle\Entity\Block": getId |
||||
|
||||
assets: |
||||
stylesheets: |
||||
- assetic/sonata_front_css.css |
||||
|
||||
javascripts: |
||||
- assetic/sonata_front_js.js |
||||
|
||||
default_template: default |
||||
templates: |
||||
default: |
||||
path: 'ChamiloPageBundle::demo_layout.html.twig' |
||||
# path: '::layout.html.twig' |
||||
name: 'default' |
||||
containers: |
||||
header: |
||||
name: Header |
||||
content_top: |
||||
name: Top content |
||||
content: |
||||
name: Main content |
||||
content_bottom: |
||||
name: Bottom content |
||||
footer: |
||||
name: Footer |
||||
matrix: |
||||
layout: | |
||||
HHHHHHHH |
||||
TTTTTTTT |
||||
CCCCCCCC |
||||
BBBBBBBB |
||||
FFFFFFFF |
||||
|
||||
mapping: |
||||
H: header |
||||
T: content_top |
||||
C: content |
||||
B: content_bottom |
||||
F: footer |
||||
|
||||
2columns: |
||||
path: 'ChamiloPageBundle::demo_2columns_layout.html.twig' |
||||
# path: '::layout.html.twig' |
||||
name: '2 columns layout' |
||||
containers: |
||||
header: |
||||
name: Header |
||||
content_top: |
||||
name: Top content |
||||
left_col: |
||||
name: Left content |
||||
rigth_col: |
||||
name: Right content |
||||
content_bottom: |
||||
name: Bottom content |
||||
footer: |
||||
name: Footer |
||||
matrix: |
||||
layout: | |
||||
HHHHHHHH |
||||
TTTTTTTT |
||||
LLLLRRRR |
||||
BBBBBBBB |
||||
FFFFFFFF |
||||
|
||||
mapping: |
||||
H: header |
||||
T: content_top |
||||
L: left_col |
||||
R: rigth_col |
||||
B: content_bottom |
||||
F: footer |
||||
|
||||
page_defaults: |
||||
homepage: { decorate: false, enabled: true } |
||||
home: { decorate: false, enabled: true } |
||||
|
||||
caches: |
||||
esi: |
||||
token: add an unique token here # default is a random value |
||||
version: 3 # version 3 is the default on debian wheezy ... |
||||
servers: |
||||
- %sonata_page.varnish.command% # you need to adapt this line to work with your configuration |
||||
|
||||
ssi: |
||||
token: add an unique token here # default is a random value |
||||
|
||||
catch_exceptions: |
||||
not_found: [404] # render 404 page with "not_found" key (name generated: _page_internal_error_{key}) |
||||
fatal: [500] # so you can use the same page for different http errors or specify specific page for each error |
||||
|
||||
# Enable Doctrine to map the provided entities |
||||
doctrine: |
||||
orm: |
||||
entity_managers: |
||||
default: |
||||
mappings: |
||||
ChamiloPageBundle: ~ |
||||
SonataPageBundle: ~ |
@ -1,47 +0,0 @@ |
||||
|
||||
sonata_seo: |
||||
encoding: UTF-8 |
||||
page: |
||||
default: sonata.seo.page.default |
||||
title: Chamilo |
||||
metas: |
||||
name: |
||||
keywords: 'chamilo e-learning' |
||||
description: 'chamilo e-learning' |
||||
robots: index, follow |
||||
viewport: width=device-width,initial-scale=1 |
||||
apple-mobile-web-app-capable: yes |
||||
author: chamilo |
||||
Generator: Chamilo 2 |
||||
|
||||
property: |
||||
# Facebook application settings |
||||
#'fb:app_id': XXXXXX |
||||
#'fb:admins': admin1, admin2 |
||||
|
||||
# Open Graph information |
||||
# see http://developers.facebook.com/docs/opengraphprotocol/#types or http://ogp.me/ |
||||
# 'og:site_name': %sonata_admin.title% |
||||
# 'og:description': %sonata_admin.title% |
||||
|
||||
http-equiv: |
||||
# 'Content-Type': text/html; charset=utf-8 |
||||
#'X-Ua-Compatible': IE=EmulateIE7 |
||||
|
||||
head: |
||||
'xmlns': http://www.w3.org/1999/xhtml |
||||
|
||||
# sitemap: |
||||
# services: |
||||
# - sonata.product.seo_iterator |
||||
# doctrine_orm: |
||||
# # media |
||||
# - { connection: doctrine.dbal.default_connection, route: sonata_media_view, parameters: {id: null}, query: "SELECT id, updated_at as lastmod, 'weekly' as changefreq, '0.5' as prioriy FROM media__media WHERE enabled = true" } |
||||
# # blog post |
||||
# - { connection: doctrine.dbal.default_connection, route: sonata_news_view, parameters: {permalink: null}, query: "SELECT CONCAT_WS('/', YEAR(created_at), MONTH(created_at), DAY(created_at), slug) as permalink , updated_at as lastmod, 'weekly' as changefreq, '0.5' as prioriy FROM news__post WHERE enabled = 1 AND (publication_date_start IS NULL OR publication_date_start <= NOW())" } |
||||
# # page - works only for one site, please adapt the code if required |
||||
# - { connection: doctrine.dbal.default_connection, route: page_slug, parameters: {path: null}, query: "SELECT url as path, updated_at as lastmod, 'weekly' as changefreq, '0.5' as prioriy FROM page__snapshot WHERE route_name = 'page_slug' AND enabled = 1 AND (publication_date_start IS NULL OR publication_date_start <= NOW())" } |
||||
# # product categories |
||||
# - { connection: doctrine.dbal.default_connection, route: sonata_catalog_category, parameters: {category_id: null, category_slug: null}, query: "SELECT id as category_id, slug as category_slug, updated_at as lastmod, 'weekly' as changefreq, '0.5' as prioriy FROM classification__category WHERE enabled = true" } |
||||
# # products |
||||
# - { connection: doctrine.dbal.default_connection, route: sonata_product_view, parameters: {productId: null, slug: null}, query: "SELECT id as productId, slug, updated_at as lastmod, 'weekly' as changefreq, '0.5' as prioriy FROM product__product WHERE enabled = true" } |
@ -1,28 +0,0 @@ |
||||
sonata_timeline: |
||||
manager_type: orm |
||||
|
||||
class: |
||||
timeline: %spy_timeline.class.timeline% |
||||
action: %spy_timeline.class.action% |
||||
component: %spy_timeline.class.component% |
||||
action_component: %spy_timeline.class.action_component% |
||||
|
||||
spy_timeline: |
||||
drivers: |
||||
orm: |
||||
object_manager: doctrine.orm.entity_manager |
||||
classes: |
||||
query_builder: ~ # Spy\TimelineBundle\Driver\ORM\QueryBuilder\QueryBuilder |
||||
timeline: Chamilo\TimelineBundle\Entity\Timeline |
||||
action: Chamilo\TimelineBundle\Entity\Action |
||||
component: Chamilo\TimelineBundle\Entity\Component |
||||
action_component: Chamilo\TimelineBundle\Entity\ActionComponent |
||||
|
||||
filters: |
||||
data_hydrator: |
||||
priority: 20 |
||||
service: spy_timeline.filter.data_hydrator |
||||
filter_unresolved: false |
||||
locators: |
||||
- spy_timeline.filter.data_hydrator.locator.doctrine_orm |
||||
|
@ -1,17 +0,0 @@ |
||||
lunetics_locale: |
||||
guessing_order: |
||||
- session |
||||
- query |
||||
- router |
||||
|
||||
#- browser |
||||
|
||||
allowed_locales: '%locales%' |
||||
|
||||
a2lix_translation_form: |
||||
locale_provider: default # [1] |
||||
locales: '%locales%' # [1-a] |
||||
default_locale: '%locale%' # [1-b] |
||||
required_locales: [en] # [1-c] |
||||
manager_registry: doctrine # [2] |
||||
templating: "A2lixTranslationFormBundle::default.html.twig" # [3] |
@ -1,63 +0,0 @@ |
||||
# if you change the class configuration, please also alter the fos_user.yml file |
||||
doctrine: |
||||
orm: |
||||
entity_managers: |
||||
default: |
||||
mappings: |
||||
FOSUserBundle: ~ |
||||
ChamiloUserBundle: ~ |
||||
SonataUserBundle: ~ |
||||
sonata_user: |
||||
admin: |
||||
user: |
||||
class: Chamilo\UserBundle\Admin\UserAdmin |
||||
group: |
||||
class: Chamilo\UserBundle\Admin\GroupAdmin |
||||
|
||||
class: |
||||
# Entity Classes |
||||
user: Chamilo\UserBundle\Entity\User |
||||
group: Chamilo\UserBundle\Entity\Group |
||||
|
||||
security_acl: false |
||||
table: |
||||
user_group: fos_user_user_group |
||||
|
||||
impersonating: |
||||
route: page_slug |
||||
parameters: { path: / } |
||||
|
||||
# google_authenticator: |
||||
# server: %sonata_user.google_authenticator.server% |
||||
# enabled: true |
||||
|
||||
manager_type: orm |
||||
|
||||
profile: |
||||
dashboard: |
||||
blocks: |
||||
- { position: left, type: sonata.block.service.text, settings: { content: "<h2>Welcome!</h2> <p>This is a sample user profile dashboard, feel free to override it in the configuration! Want to make this text dynamic? For instance display the user's name? Create a dedicated block and edit the configuration!</p>"} } |
||||
#- { position: left, type: sonata.order.block.recent_orders, settings: { title: Recent Orders, number: 5, mode: public }} |
||||
# - { position: right, type: sonata.timeline.block.timeline, settings: { max_per_page: 15 }} |
||||
# - { position: right, type: sonata.news.block.recent_posts, settings: { title: Recent Posts, number: 5, mode: public }} |
||||
# - { position: right, type: sonata.news.block.recent_comments, settings: { title: Recent Comments, number: 5, mode: public }} |
||||
menu: |
||||
- { route: 'sonata_user_profile_show', label: 'sonata_profile_title', domain: 'SonataUserBundle'} |
||||
- { route: 'sonata_user_profile_edit', label: 'link_edit_profile', domain: 'SonataUserBundle'} |
||||
#- { route: 'sonata_customer_addresses', label: 'link_list_addresses', domain: 'SonataCustomerBundle'} |
||||
#- { route: 'sonata_order_index', label: 'order_list', domain: 'SonataOrderBundle'} |
||||
form: |
||||
type: sonata_user_registration |
||||
handler: sonata.user.profile.form.handler.default |
||||
name: sonata_user_registration_form |
||||
validation_groups: |
||||
- Profile |
||||
|
||||
# register: |
||||
# form: |
||||
# type: chamilo_sonata_user_registration |
||||
# handler: sonata.user.registration.form.handler.default |
||||
# name: chamilo_sonata_user_registration |
||||
# validation_groups: |
||||
# - Registration |
||||
# - Default |
@ -1,31 +0,0 @@ |
||||
#!/usr/bin/env php |
||||
<?php |
||||
exit; |
||||
use Symfony\Bundle\FrameworkBundle\Console\Application; |
||||
use Symfony\Component\Console\Input\ArgvInput; |
||||
use Symfony\Component\Debug\Debug; |
||||
|
||||
// if you don't want to setup permissions the proper way, just uncomment the following PHP line |
||||
// read http://symfony.com/doc/current/book/installation.html#configuration-and-setup for more information |
||||
//umask(0000); |
||||
|
||||
set_time_limit(0); |
||||
|
||||
/** |
||||
* @var Composer\Autoload\ClassLoader $loader |
||||
*/ |
||||
$loader = require __DIR__.'/autoload.php'; |
||||
require_once __DIR__.'/AppKernel.php'; |
||||
|
||||
|
||||
$input = new ArgvInput(); |
||||
$env = $input->getParameterOption(['--env', '-e'], getenv('SYMFONY_ENV') ?: 'dev'); |
||||
$debug = getenv('SYMFONY_DEBUG') !== '0' && !$input->hasParameterOption(['--no-debug', '']) && $env !== 'prod'; |
||||
|
||||
if ($debug) { |
||||
Debug::enable(); |
||||
} |
||||
|
||||
$kernel = new AppKernel($env, $debug); |
||||
$application = new Application($kernel); |
||||
$application->run($input); |
Loading…
Reference in new issue