Browse Source

Adding default category and context during installation.

jmontoya 9 years ago
parent
commit
d33991c50d

+ 0 - 8
app/config/sonata/sonata_media.yml

@@ -184,11 +184,3 @@ sonata_media:
 #            filters:
 #                thumbnail: { size: [820, 70], mode: outbound }
 
-# Enable Doctrine to map the provided entities
-#doctrine:
-#    orm:
-#        entity_managers:
-#            default:
-#                mappings:
-#                    ChamiloMediaBundle: ~
-#                    SonataMediaBundle: ~

+ 9 - 9
src/Chamilo/InstallerBundle/Process/Step/InstallationStep.php

@@ -32,13 +32,21 @@ class InstallationStep extends AbstractStep
         $action = $this->getRequest()->query->get('action');
         switch ($action) {
             case 'settings':
-
                 return new JsonResponse(array('result' => true, 'exitCode' => 0));
             case 'pages':
+                $this->handleAjaxAction(
+                    'sonata:classification:fix-context'
+                );
+
+                $this->handleAjaxAction(
+                    'sonata:media:fix-media-context'
+                );
+
                 $this->handleAjaxAction(
                     'sonata:page:update-core-routes',
                     array('--site' => array('all'))
                 );
+
                 return $this->handleAjaxAction(
                     'sonata:page:create-snapshots',
                     array('--site' => array('all'))
@@ -48,12 +56,6 @@ class InstallationStep extends AbstractStep
                     'oro:migration:data:load',
                     array('--fixtures-type' => 'demo')
                 );
-            case 'navigation':
-                return $this->handleAjaxAction('oro:navigation:init');
-//            case 'js-routing':
-//                return $this->handleAjaxAction('fos:js-routing:dump', array('--target' => 'js/routes.js'));
-            case 'localization':
-                //return $this->handleAjaxAction('oro:localization:dump');
             case 'assets':
                 /*return $this->handleAjaxAction(
                     'oro:assets:install',
@@ -80,8 +82,6 @@ class InstallationStep extends AbstractStep
                 return $this->handleAjaxAction('assetic:dump');
             case 'translation':
                 //return $this->handleAjaxAction('oro:translation:dump');
-            case 'requirejs':
-                //return $this->handleAjaxAction('oro:requirejs:build', array('--ignore-errors' => true));
             case 'finish':
                 $this->get('event_dispatcher')->dispatch(
                     InstallerEvents::FINISH