Pārlūkot izejas kodu

Minor - add redirects + docs

jmontoyaa 8 gadi atpakaļ
vecāks
revīzija
4117c41247
3 mainītis faili ar 15 papildinājumiem un 44 dzēšanām
  1. 0 44
      cli-config.php
  2. 5 0
      index.php
  3. 10 0
      user_portal.php

+ 0 - 44
cli-config.php

@@ -1,44 +0,0 @@
-<?php
-/* For licensing terms, see /license.txt */
-
-/**
- * Script needed to execute bin/doctrine.php in the command line
- * in order to:
- *
- * - Generate migrations
- * - Create schema
- * - Update schema
- * - Validate schema
- * - Etc
- **/
-
-use Doctrine\ORM\Tools\Console\ConsoleRunner;
-
-require_once __DIR__.'/vendor/autoload.php';
-//require_once __DIR__.'/main/inc/lib/api.lib.php';
-$configurationFile = __DIR__.'/app/config/configuration.php';
-
-if (!is_file($configurationFile)) {
-    echo "File does not exists: $configurationFile";
-    exit();
-}
-
-require_once $configurationFile;
-
-$database = new \Database();
-$dbParams = array(
-    'driver' => 'pdo_mysql',
-    'host' => $_configuration['db_host'],
-    'user' => $_configuration['db_user'],
-    'password' => $_configuration['db_password'],
-    'dbname' => $_configuration['main_database']
-);
-
-$database->connect($dbParams, realpath(__DIR__).'/', realpath(__DIR__).'/');
-$entityManager = $database::getManager();
-
-$helperSet = ConsoleRunner::createHelperSet($entityManager);
-$dialogHelper = new Symfony\Component\Console\Helper\QuestionHelper();
-$helperSet->set($dialogHelper);
-
-return $helperSet;

+ 5 - 0
index.php

@@ -1,5 +1,10 @@
 <?php
 /* For licensing terms, see /license.txt */
+/*
+    Index can be found in:
+    IndexController :: indexAction
+    Chamilo\CoreBundle\Controller\IndexController
+*/
 
 // @todo change root .htaccess
 header('Location: web/app_dev.php');

+ 10 - 0
user_portal.php

@@ -1,6 +1,16 @@
 <?php
 /* For licensing terms, see /license.txt */
 
+/*
+    user_portal.php can be found in:
+    UserPortalController :: indexAction
+    Chamilo\CoreBundle\Controller\UserPortalController
+*/
+
+// @todo change root .htaccess
+header('Location: web/app_dev.php/userportal');
+exit;
+
 use ChamiloSession as Session;
 
 /**