Updating autoload

skala
Julio Montoya 12 years ago
parent 9c691113d2
commit 584d630caf
  1. 134
      composer.lock
  2. 11
      main/inc/autoload.inc.php
  3. 1175
      main/inc/lib/autoload.class.php
  4. 8
      main/pages/index.php

134
composer.lock generated

@ -335,12 +335,12 @@
"source": { "source": {
"type": "git", "type": "git",
"url": "https://github.com/doctrine/dbal", "url": "https://github.com/doctrine/dbal",
"reference": "328d8a5387be1fc365f3bba27327023afdee30c5" "reference": "f8604e1444263e8a3020c6b622a14ff63b50b42f"
}, },
"dist": { "dist": {
"type": "zip", "type": "zip",
"url": "https://github.com/doctrine/dbal/archive/328d8a5387be1fc365f3bba27327023afdee30c5.zip", "url": "https://github.com/doctrine/dbal/archive/f8604e1444263e8a3020c6b622a14ff63b50b42f.zip",
"reference": "328d8a5387be1fc365f3bba27327023afdee30c5", "reference": "f8604e1444263e8a3020c6b622a14ff63b50b42f",
"shasum": "" "shasum": ""
}, },
"require": { "require": {
@ -353,7 +353,7 @@
"suggest": { "suggest": {
"symfony/console": "For helpful console commands such as SQL execution and import of files." "symfony/console": "For helpful console commands such as SQL execution and import of files."
}, },
"time": "2013-01-13 08:47:01", "time": "2013-01-17 18:06:44",
"type": "library", "type": "library",
"extra": { "extra": {
"branch-alias": { "branch-alias": {
@ -968,12 +968,12 @@
"source": { "source": {
"type": "git", "type": "git",
"url": "git://github.com/fabpot/Silex.git", "url": "git://github.com/fabpot/Silex.git",
"reference": "3d5d39ea73ef1fa8366957e96fa9204805d7cac6" "reference": "ec01b080852ee85bbb4ae5abd7fa205df9824079"
}, },
"dist": { "dist": {
"type": "zip", "type": "zip",
"url": "https://github.com/fabpot/Silex/archive/3d5d39ea73ef1fa8366957e96fa9204805d7cac6.zip", "url": "https://github.com/fabpot/Silex/archive/ec01b080852ee85bbb4ae5abd7fa205df9824079.zip",
"reference": "3d5d39ea73ef1fa8366957e96fa9204805d7cac6", "reference": "ec01b080852ee85bbb4ae5abd7fa205df9824079",
"shasum": "" "shasum": ""
}, },
"require": { "require": {
@ -1008,7 +1008,7 @@
"symfony/css-selector": ">=2.1,<2.3-dev", "symfony/css-selector": ">=2.1,<2.3-dev",
"symfony/dom-crawler": ">=2.1,<2.3-dev" "symfony/dom-crawler": ">=2.1,<2.3-dev"
}, },
"time": "2013-01-15 13:27:32", "time": "2013-01-17 12:25:17",
"type": "library", "type": "library",
"extra": { "extra": {
"branch-alias": { "branch-alias": {
@ -1097,18 +1097,18 @@
"source": { "source": {
"type": "git", "type": "git",
"url": "https://github.com/symfony/Config", "url": "https://github.com/symfony/Config",
"reference": "v2.2.0-BETA1" "reference": "072211a77a4bd89b26bb840fdd7d83253bc20f25"
}, },
"dist": { "dist": {
"type": "zip", "type": "zip",
"url": "https://github.com/symfony/Config/archive/v2.2.0-BETA1.zip", "url": "https://github.com/symfony/Config/archive/072211a77a4bd89b26bb840fdd7d83253bc20f25.zip",
"reference": "v2.2.0-BETA1", "reference": "072211a77a4bd89b26bb840fdd7d83253bc20f25",
"shasum": "" "shasum": ""
}, },
"require": { "require": {
"php": ">=5.3.3" "php": ">=5.3.3"
}, },
"time": "2013-01-05 17:52:40", "time": "2013-01-17 15:25:59",
"type": "library", "type": "library",
"extra": { "extra": {
"branch-alias": { "branch-alias": {
@ -1144,18 +1144,18 @@
"source": { "source": {
"type": "git", "type": "git",
"url": "https://github.com/symfony/Console", "url": "https://github.com/symfony/Console",
"reference": "v2.2.0-BETA1" "reference": "b76fc0d327cb8d90ef0d685f3d696dab714b8327"
}, },
"dist": { "dist": {
"type": "zip", "type": "zip",
"url": "https://github.com/symfony/Console/archive/v2.2.0-BETA1.zip", "url": "https://github.com/symfony/Console/archive/b76fc0d327cb8d90ef0d685f3d696dab714b8327.zip",
"reference": "v2.2.0-BETA1", "reference": "b76fc0d327cb8d90ef0d685f3d696dab714b8327",
"shasum": "" "shasum": ""
}, },
"require": { "require": {
"php": ">=5.3.3" "php": ">=5.3.3"
}, },
"time": "2013-01-08 18:17:41", "time": "2013-01-17 15:25:59",
"type": "library", "type": "library",
"extra": { "extra": {
"branch-alias": { "branch-alias": {
@ -1191,12 +1191,12 @@
"source": { "source": {
"type": "git", "type": "git",
"url": "https://github.com/symfony/DependencyInjection", "url": "https://github.com/symfony/DependencyInjection",
"reference": "b5fa8c4627840d22a13def4be4f3383ddd992aa1" "reference": "e8bf1159bfbc4a889b3b0d251f75fd6ae1931656"
}, },
"dist": { "dist": {
"type": "zip", "type": "zip",
"url": "https://github.com/symfony/DependencyInjection/archive/b5fa8c4627840d22a13def4be4f3383ddd992aa1.zip", "url": "https://github.com/symfony/DependencyInjection/archive/e8bf1159bfbc4a889b3b0d251f75fd6ae1931656.zip",
"reference": "b5fa8c4627840d22a13def4be4f3383ddd992aa1", "reference": "e8bf1159bfbc4a889b3b0d251f75fd6ae1931656",
"shasum": "" "shasum": ""
}, },
"require": { "require": {
@ -1210,7 +1210,7 @@
"symfony/yaml": "2.2.*", "symfony/yaml": "2.2.*",
"symfony/config": "2.2.*" "symfony/config": "2.2.*"
}, },
"time": "2013-01-16 08:59:03", "time": "2013-01-17 21:22:20",
"type": "library", "type": "library",
"extra": { "extra": {
"branch-alias": { "branch-alias": {
@ -1246,12 +1246,12 @@
"source": { "source": {
"type": "git", "type": "git",
"url": "https://github.com/symfony/EventDispatcher", "url": "https://github.com/symfony/EventDispatcher",
"reference": "593ca3bb9ed5eccc1156c402102d9b5bb07cd783" "reference": "v2.1.7"
}, },
"dist": { "dist": {
"type": "zip", "type": "zip",
"url": "https://github.com/symfony/EventDispatcher/archive/593ca3bb9ed5eccc1156c402102d9b5bb07cd783.zip", "url": "https://github.com/symfony/EventDispatcher/archive/v2.1.7.zip",
"reference": "593ca3bb9ed5eccc1156c402102d9b5bb07cd783", "reference": "v2.1.7",
"shasum": "" "shasum": ""
}, },
"require": { "require": {
@ -1264,7 +1264,7 @@
"symfony/dependency-injection": "2.1.*", "symfony/dependency-injection": "2.1.*",
"symfony/http-kernel": "2.1.*" "symfony/http-kernel": "2.1.*"
}, },
"time": "2013-01-09 08:51:07", "time": "2013-01-11 00:31:43",
"type": "library", "type": "library",
"autoload": { "autoload": {
"psr-0": { "psr-0": {
@ -1295,12 +1295,12 @@
"source": { "source": {
"type": "git", "type": "git",
"url": "https://github.com/symfony/Form", "url": "https://github.com/symfony/Form",
"reference": "36f95a1fe529b80794154f0778d1e8e9147eb45d" "reference": "v2.1.7"
}, },
"dist": { "dist": {
"type": "zip", "type": "zip",
"url": "https://github.com/symfony/Form/archive/36f95a1fe529b80794154f0778d1e8e9147eb45d.zip", "url": "https://github.com/symfony/Form/archive/v2.1.7.zip",
"reference": "36f95a1fe529b80794154f0778d1e8e9147eb45d", "reference": "v2.1.7",
"shasum": "" "shasum": ""
}, },
"require": { "require": {
@ -1348,18 +1348,18 @@
"source": { "source": {
"type": "git", "type": "git",
"url": "https://github.com/symfony/HttpFoundation", "url": "https://github.com/symfony/HttpFoundation",
"reference": "229cc2272d62f4141c17254d15511532e6e46ce0" "reference": "v2.1.7"
}, },
"dist": { "dist": {
"type": "zip", "type": "zip",
"url": "https://github.com/symfony/HttpFoundation/archive/229cc2272d62f4141c17254d15511532e6e46ce0.zip", "url": "https://github.com/symfony/HttpFoundation/archive/v2.1.7.zip",
"reference": "229cc2272d62f4141c17254d15511532e6e46ce0", "reference": "v2.1.7",
"shasum": "" "shasum": ""
}, },
"require": { "require": {
"php": ">=5.3.3" "php": ">=5.3.3"
}, },
"time": "2013-01-09 08:51:07", "time": "2013-01-11 00:31:43",
"type": "library", "type": "library",
"autoload": { "autoload": {
"psr-0": { "psr-0": {
@ -1391,12 +1391,12 @@
"source": { "source": {
"type": "git", "type": "git",
"url": "https://github.com/symfony/HttpKernel", "url": "https://github.com/symfony/HttpKernel",
"reference": "c40b512d466b132c8446a25a1e7fb0d60a49c65e" "reference": "e57b260d74b04671d26cc37c2049b90924bb636d"
}, },
"dist": { "dist": {
"type": "zip", "type": "zip",
"url": "https://github.com/symfony/HttpKernel/archive/c40b512d466b132c8446a25a1e7fb0d60a49c65e.zip", "url": "https://github.com/symfony/HttpKernel/archive/e57b260d74b04671d26cc37c2049b90924bb636d.zip",
"reference": "c40b512d466b132c8446a25a1e7fb0d60a49c65e", "reference": "e57b260d74b04671d26cc37c2049b90924bb636d",
"shasum": "" "shasum": ""
}, },
"require": { "require": {
@ -1422,7 +1422,7 @@
"symfony/dependency-injection": "2.1.*", "symfony/dependency-injection": "2.1.*",
"symfony/finder": "2.1.*" "symfony/finder": "2.1.*"
}, },
"time": "2013-01-11 10:35:43", "time": "2013-01-17 23:11:33",
"type": "library", "type": "library",
"autoload": { "autoload": {
"psr-0": { "psr-0": {
@ -1453,12 +1453,12 @@
"source": { "source": {
"type": "git", "type": "git",
"url": "https://github.com/symfony/Locale", "url": "https://github.com/symfony/Locale",
"reference": "3ad6a5129809b3815a2b9056eee470dc2877717f" "reference": "v2.1.7"
}, },
"dist": { "dist": {
"type": "zip", "type": "zip",
"url": "https://github.com/symfony/Locale/archive/3ad6a5129809b3815a2b9056eee470dc2877717f.zip", "url": "https://github.com/symfony/Locale/archive/v2.1.7.zip",
"reference": "3ad6a5129809b3815a2b9056eee470dc2877717f", "reference": "v2.1.7",
"shasum": "" "shasum": ""
}, },
"require": { "require": {
@ -1498,12 +1498,12 @@
"source": { "source": {
"type": "git", "type": "git",
"url": "https://github.com/symfony/OptionsResolver", "url": "https://github.com/symfony/OptionsResolver",
"reference": "1a1319747462c2d457c3e1c8c2c9a26ad4bcb67b" "reference": "v2.1.7"
}, },
"dist": { "dist": {
"type": "zip", "type": "zip",
"url": "https://github.com/symfony/OptionsResolver/archive/1a1319747462c2d457c3e1c8c2c9a26ad4bcb67b.zip", "url": "https://github.com/symfony/OptionsResolver/archive/v2.1.7.zip",
"reference": "1a1319747462c2d457c3e1c8c2c9a26ad4bcb67b", "reference": "v2.1.7",
"shasum": "" "shasum": ""
}, },
"require": { "require": {
@ -1545,12 +1545,12 @@
"source": { "source": {
"type": "git", "type": "git",
"url": "https://github.com/symfony/Routing", "url": "https://github.com/symfony/Routing",
"reference": "81b5a5649b8b1fba057f3fdd5ca15cc3af822b66" "reference": "9ce05861fd9aa6cbb14759a78ab30d07afcf489f"
}, },
"dist": { "dist": {
"type": "zip", "type": "zip",
"url": "https://github.com/symfony/Routing/archive/81b5a5649b8b1fba057f3fdd5ca15cc3af822b66.zip", "url": "https://github.com/symfony/Routing/archive/9ce05861fd9aa6cbb14759a78ab30d07afcf489f.zip",
"reference": "81b5a5649b8b1fba057f3fdd5ca15cc3af822b66", "reference": "9ce05861fd9aa6cbb14759a78ab30d07afcf489f",
"shasum": "" "shasum": ""
}, },
"require": { "require": {
@ -1568,7 +1568,7 @@
"symfony/config": "2.2.*", "symfony/config": "2.2.*",
"symfony/yaml": "2.2.*" "symfony/yaml": "2.2.*"
}, },
"time": "2013-01-15 17:01:40", "time": "2013-01-17 15:25:59",
"type": "library", "type": "library",
"extra": { "extra": {
"branch-alias": { "branch-alias": {
@ -1604,12 +1604,12 @@
"source": { "source": {
"type": "git", "type": "git",
"url": "https://github.com/symfony/Security", "url": "https://github.com/symfony/Security",
"reference": "6335d042d57da0016da722abefd9e1c519c88f2c" "reference": "v2.1.7"
}, },
"dist": { "dist": {
"type": "zip", "type": "zip",
"url": "https://github.com/symfony/Security/archive/6335d042d57da0016da722abefd9e1c519c88f2c.zip", "url": "https://github.com/symfony/Security/archive/v2.1.7.zip",
"reference": "6335d042d57da0016da722abefd9e1c519c88f2c", "reference": "v2.1.7",
"shasum": "" "shasum": ""
}, },
"require": { "require": {
@ -1664,12 +1664,12 @@
"source": { "source": {
"type": "git", "type": "git",
"url": "https://github.com/symfony/Translation", "url": "https://github.com/symfony/Translation",
"reference": "331f25563a58ec768b59137f8ef34cb5fb1ab330" "reference": "v2.1.7"
}, },
"dist": { "dist": {
"type": "zip", "type": "zip",
"url": "https://github.com/symfony/Translation/archive/331f25563a58ec768b59137f8ef34cb5fb1ab330.zip", "url": "https://github.com/symfony/Translation/archive/v2.1.7.zip",
"reference": "331f25563a58ec768b59137f8ef34cb5fb1ab330", "reference": "v2.1.7",
"shasum": "" "shasum": ""
}, },
"require": { "require": {
@ -1714,12 +1714,12 @@
"source": { "source": {
"type": "git", "type": "git",
"url": "https://github.com/symfony/TwigBridge", "url": "https://github.com/symfony/TwigBridge",
"reference": "b4b2bb25ab6584eba422fc645ac1cdd04745220e" "reference": "b332bd4a0ffd0d5775d22e80cd14d0433c286027"
}, },
"dist": { "dist": {
"type": "zip", "type": "zip",
"url": "https://github.com/symfony/TwigBridge/archive/b4b2bb25ab6584eba422fc645ac1cdd04745220e.zip", "url": "https://github.com/symfony/TwigBridge/archive/b332bd4a0ffd0d5775d22e80cd14d0433c286027.zip",
"reference": "b4b2bb25ab6584eba422fc645ac1cdd04745220e", "reference": "b332bd4a0ffd0d5775d22e80cd14d0433c286027",
"shasum": "" "shasum": ""
}, },
"require": { "require": {
@ -1744,7 +1744,7 @@
"symfony/security": "2.2.*", "symfony/security": "2.2.*",
"symfony/http-kernel": "2.2.*" "symfony/http-kernel": "2.2.*"
}, },
"time": "2013-01-11 17:38:19", "time": "2013-01-17 15:25:59",
"type": "symfony-bridge", "type": "symfony-bridge",
"extra": { "extra": {
"branch-alias": { "branch-alias": {
@ -1780,12 +1780,12 @@
"source": { "source": {
"type": "git", "type": "git",
"url": "https://github.com/symfony/Validator", "url": "https://github.com/symfony/Validator",
"reference": "822dd14c17f378a627e36d8954c01669a654f19e" "reference": "v2.1.7"
}, },
"dist": { "dist": {
"type": "zip", "type": "zip",
"url": "https://github.com/symfony/Validator/archive/822dd14c17f378a627e36d8954c01669a654f19e.zip", "url": "https://github.com/symfony/Validator/archive/v2.1.7.zip",
"reference": "822dd14c17f378a627e36d8954c01669a654f19e", "reference": "v2.1.7",
"shasum": "" "shasum": ""
}, },
"require": { "require": {
@ -1801,7 +1801,7 @@
"symfony/http-foundation": "2.1.*", "symfony/http-foundation": "2.1.*",
"symfony/yaml": "2.1.*" "symfony/yaml": "2.1.*"
}, },
"time": "2013-01-09 08:51:07", "time": "2013-01-11 00:31:43",
"type": "library", "type": "library",
"autoload": { "autoload": {
"psr-0": { "psr-0": {
@ -1832,18 +1832,18 @@
"source": { "source": {
"type": "git", "type": "git",
"url": "https://github.com/symfony/Yaml", "url": "https://github.com/symfony/Yaml",
"reference": "7dd042765a3299d7cb1627ca9e6ffdb59fc54058" "reference": "v2.1.7"
}, },
"dist": { "dist": {
"type": "zip", "type": "zip",
"url": "https://github.com/symfony/Yaml/archive/7dd042765a3299d7cb1627ca9e6ffdb59fc54058.zip", "url": "https://github.com/symfony/Yaml/archive/v2.1.7.zip",
"reference": "7dd042765a3299d7cb1627ca9e6ffdb59fc54058", "reference": "v2.1.7",
"shasum": "" "shasum": ""
}, },
"require": { "require": {
"php": ">=5.3.3" "php": ">=5.3.3"
}, },
"time": "2013-01-09 08:51:07", "time": "2013-01-17 21:21:51",
"type": "library", "type": "library",
"autoload": { "autoload": {
"psr-0": { "psr-0": {
@ -1873,18 +1873,18 @@
"source": { "source": {
"type": "git", "type": "git",
"url": "git://github.com/fabpot/Twig.git", "url": "git://github.com/fabpot/Twig.git",
"reference": "3225226e0be466395414da4b362013531eedb580" "reference": "93c6a8dedc46c73ccdd61342de3d5e761e4412f6"
}, },
"dist": { "dist": {
"type": "zip", "type": "zip",
"url": "https://github.com/fabpot/Twig/archive/3225226e0be466395414da4b362013531eedb580.zip", "url": "https://github.com/fabpot/Twig/archive/93c6a8dedc46c73ccdd61342de3d5e761e4412f6.zip",
"reference": "3225226e0be466395414da4b362013531eedb580", "reference": "93c6a8dedc46c73ccdd61342de3d5e761e4412f6",
"shasum": "" "shasum": ""
}, },
"require": { "require": {
"php": ">=5.2.4" "php": ">=5.2.4"
}, },
"time": "2013-01-16 13:37:25", "time": "2013-01-18 09:58:04",
"type": "library", "type": "library",
"extra": { "extra": {
"branch-alias": { "branch-alias": {

@ -4,15 +4,8 @@
* Set up the Chamilo autoload stack. Can be called several time if needed also * Set up the Chamilo autoload stack. Can be called several time if needed also
* better to avoid it. * better to avoid it.
*/ */
/*
require_once dirname(__FILE__) . '/lib/autoload.class.php'; require_once dirname(__FILE__) . '/lib/autoload.class.php';
Autoload::register(); Autoload::register();
*
/**
use Symfony\Component\ClassLoader\UniversalClassLoader;
$loader = new UniversalClassLoader();
$loader->registerNamespaces(array(
'Symfony\\Component\\HttpFoundation', __DIR__.'/vendor/symfony/http-foundation',
));
$loader->register();
*/ */

File diff suppressed because it is too large Load Diff

@ -13,10 +13,6 @@ use Pagerfanta\View\TwitterBootstrapView;
//use Pagerfanta\View\DefaultView; //use Pagerfanta\View\DefaultView;
//use Pages\PagesAdmin; //use Pages\PagesAdmin;
use APY\DataGridBundle\Grid\Grid;
use APY\DataGridBundle\Grid\Source\Entity;
class PagesController { class PagesController {
/* /*
function indexAction(Application $app, $page) { function indexAction(Application $app, $page) {
@ -87,7 +83,7 @@ class PagesController {
} }
function listAction(Application $app, $page = 1) { function listAction(Application $app, $page = 1) {
/*
$source = new Entity('Entity\EntityPages'); $source = new Entity('Entity\EntityPages');
$grid = new Grid(); $grid = new Grid();
@ -96,7 +92,7 @@ class PagesController {
// Return the response of the grid to the template // Return the response of the grid to the template
//return $grid->getGridResponse('MyProjectMyBundle::myGrid.html.twig'); //return $grid->getGridResponse('MyProjectMyBundle::myGrid.html.twig');
*/

Loading…
Cancel
Save