Переглянути джерело

Adding pagerfanta service provider

Julio Montoya 12 роки тому
батько
коміт
e543a2c1fb

+ 18 - 13
composer.json

@@ -20,9 +20,19 @@
             "main/survey"
         ]
     },
+    "repositories": [
+        {
+            "type": "vcs",
+            "url": "https://github.com/jmontoyaa/phpqrcode"
+        },
+        {
+            "type": "vcs",
+            "url": "https://github.com/jmontoyaa/silex-pagerfanta-provider"
+        }
+    ],
     "require": {
         "php": ">=5.3.2",
-        "silex/silex"           : "~1.0@dev",
+        "silex/silex": "1.0.*@dev",
         "symfony/config": "2.3.*@dev",
         "symfony/yaml": "2.1.*@dev",
         "symfony/console"  : "2.3.*@dev",
@@ -33,35 +43,30 @@
         "symfony/property-access": "2.3.*@dev",
         "symfony/validator": "2.3.*@dev",
         "symfony/translation": "2.3.*@dev",
-        "symfony/dependency-injection": "dev-master",
-        "monolog/monolog"       : ">=1.0.0",
+        "symfony/dependency-injection": "2.3.*@dev",
+        "monolog/monolog" : ">=1.0.0",
         "twig/twig": ">=1.8,<2.0-dev",
         "dflydev/doctrine-orm-service-provider": "1.0.*@dev",
         "doctrine/migrations": "dev-master",
         "gedmo/doctrine-extensions": "2.3.*@dev",
         "chamilo/chash": "dev-master",
         "swiftmailer/swiftmailer": ">=4.1.2,<4.2-dev",
-        "pagerfanta/pagerfanta": "1.0.*@dev",
+        "pagerfanta/pagerfanta": "dev-master",
+        "franmomu/silex-pagerfanta-provider": "dev-master",
         "knplabs/knp-menu": "2.0.*@dev",
         "igorw/config-service-provider": "1.0.*@dev",
         "mpdf/mpdf": "dev-master",
         "ezyang/htmlpurifier": "dev-master",
-        "natxet/CssMin": "dev-master",
         "realityking/pchart": "dev-master",
         "imagine/imagine": "dev-develop",
         "grom/silex-service-provider": "dev-master",
-        "knplabs/knp-snappy": "dev-master"
+        "knplabs/knp-snappy": "dev-master",
+        "jmontoyaa/phpqrcode": "dev-master"
     },
-    "repositories": [
-        {
-            "type": "vcs",
-            "url": "https://github.com/jmontoyaa/phpqrcode"
-        }
-    ],
     "require-dev": {
         "symfony/browser-kit": "2.3.*@dev",
         "symfony/web-profiler-bundle": "~2.2",
-        "silex/web-profiler": "~1.0",
+        "silex/web-profiler": "1.0.x-dev",
         "natxet/CssMin": "dev-master",
         "leafo/lessphp": "dev-master",
         "mheap/silex-assetic": "dev-master"

+ 161 - 64
composer.lock

@@ -3,7 +3,7 @@
         "This file locks the dependencies of your project to a known state",
         "Read more about it at http://getcomposer.org/doc/01-basic-usage.md#composer-lock-the-lock-file"
     ],
-    "hash": "f296851f48c43d6a56c46c0a9e9f0e85",
+    "hash": "70053a4d6a22184cee89f227ae452e41",
     "packages": [
         {
             "name": "chamilo/chash",
@@ -11,12 +11,12 @@
             "source": {
                 "type": "git",
                 "url": "https://github.com/chamilo/chash.git",
-                "reference": "38a4ea2c1d448699c780c81f72a434da79547a8f"
+                "reference": "f4c4747cd6c9d016dc9da0c67df92817b054de14"
             },
             "dist": {
                 "type": "zip",
-                "url": "https://api.github.com/repos/chamilo/chash/zipball/38a4ea2c1d448699c780c81f72a434da79547a8f",
-                "reference": "38a4ea2c1d448699c780c81f72a434da79547a8f",
+                "url": "https://api.github.com/repos/chamilo/chash/zipball/f4c4747cd6c9d016dc9da0c67df92817b054de14",
+                "reference": "f4c4747cd6c9d016dc9da0c67df92817b054de14",
                 "shasum": ""
             },
             "require": {
@@ -31,7 +31,7 @@
                 }
             },
             "notification-url": "https://packagist.org/downloads/",
-            "time": "2013-04-03 12:15:26"
+            "time": "2013-04-15 07:10:00"
         },
         {
             "name": "dflydev/doctrine-orm-service-provider",
@@ -150,9 +150,9 @@
                     "email": "kontakt@beberlei.de"
                 },
                 {
-                    "name": "Johannes M. Schmitt",
+                    "name": "Johannes Schmitt",
                     "email": "schmittjoh@gmail.com",
-                    "homepage": "https://github.com/schmittjoh",
+                    "homepage": "http://jmsyst.com",
                     "role": "Developer of wrapped JMSSerializerBundle"
                 }
             ],
@@ -398,6 +398,58 @@
             ],
             "time": "2013-02-18 00:04:08"
         },
+        {
+            "name": "franmomu/silex-pagerfanta-provider",
+            "version": "dev-master",
+            "source": {
+                "type": "git",
+                "url": "https://github.com/jmontoyaa/silex-pagerfanta-provider.git",
+                "reference": "dcafa4f9788dddfb1d5c5783b9bb8439313c0d54"
+            },
+            "dist": {
+                "type": "zip",
+                "url": "https://api.github.com/repos/jmontoyaa/silex-pagerfanta-provider/zipball/dcafa4f9788dddfb1d5c5783b9bb8439313c0d54",
+                "reference": "dcafa4f9788dddfb1d5c5783b9bb8439313c0d54",
+                "shasum": ""
+            },
+            "require": {
+                "pagerfanta/pagerfanta": "dev-master",
+                "silex/silex": "1.0.*@dev",
+                "symfony/property-access": ">=2.2,<2.4-dev"
+            },
+            "type": "library",
+            "extra": {
+                "branch-alias": {
+                    "dev-master": "1.0.x-dev"
+                }
+            },
+            "autoload": {
+                "psr-0": {
+                    "FranMoreno": "src/"
+                }
+            },
+            "license": [
+                "MIT"
+            ],
+            "authors": [
+                {
+                    "name": "Fran Moreno",
+                    "email": "franmomu@gmail.com",
+                    "homepage": "http://showmethecode.es"
+                }
+            ],
+            "description": "Silex ServiceProvider for Pagerfanta Library",
+            "homepage": "https://github.com/franmomu/silex-pagerfanta-provider",
+            "keywords": [
+                "pagerfanta",
+                "service provider",
+                "silex"
+            ],
+            "support": {
+                "source": "https://github.com/jmontoyaa/silex-pagerfanta-provider/tree/master"
+            },
+            "time": "2013-04-15 10:12:47"
+        },
         {
             "name": "gedmo/doctrine-extensions",
             "version": "dev-master",
@@ -630,6 +682,48 @@
             ],
             "time": "2013-04-11 19:58:00"
         },
+        {
+            "name": "jmontoyaa/phpqrcode",
+            "version": "dev-master",
+            "source": {
+                "type": "git",
+                "url": "https://github.com/jmontoyaa/phpqrcode.git",
+                "reference": "c50e0fbb2f69ad961a0f7b56b082a6772b36585b"
+            },
+            "dist": {
+                "type": "zip",
+                "url": "https://api.github.com/repos/jmontoyaa/phpqrcode/zipball/c50e0fbb2f69ad961a0f7b56b082a6772b36585b",
+                "reference": "c50e0fbb2f69ad961a0f7b56b082a6772b36585b",
+                "shasum": ""
+            },
+            "require": {
+                "php": ">=4.3.10"
+            },
+            "type": "library",
+            "autoload": {
+                "files": [
+                    "qrlib.php"
+                ]
+            },
+            "license": [
+                "LGPL"
+            ],
+            "authors": [
+                {
+                    "name": "Julio Montoya"
+                }
+            ],
+            "description": "A PHP class to generate QR Code",
+            "homepage": "http://github.com/jmontoyaa/phpqrcode/",
+            "keywords": [
+                "php",
+                "qrcode"
+            ],
+            "support": {
+                "source": "https://github.com/jmontoyaa/phpqrcode/tree/master"
+            },
+            "time": "2013-04-02 13:13:44"
+        },
         {
             "name": "knplabs/knp-menu",
             "version": "dev-master",
@@ -678,7 +772,7 @@
                     "email": "stof@notk.org"
                 },
                 {
-                    "name": "Knplabs",
+                    "name": "KnpLabs",
                     "homepage": "http://knplabs.com"
                 },
                 {
@@ -852,60 +946,18 @@
             ],
             "time": "2013-01-26 08:22:27"
         },
-        {
-            "name": "natxet/CssMin",
-            "version": "dev-master",
-            "source": {
-                "type": "git",
-                "url": "https://github.com/natxet/CssMin.git",
-                "reference": "9801e2a0de7ae252ca4f2b85542d75a82047a8b4"
-            },
-            "dist": {
-                "type": "zip",
-                "url": "https://api.github.com/repos/natxet/CssMin/zipball/9801e2a0de7ae252ca4f2b85542d75a82047a8b4",
-                "reference": "9801e2a0de7ae252ca4f2b85542d75a82047a8b4",
-                "shasum": ""
-            },
-            "require": {
-                "php": ">=5.0"
-            },
-            "type": "library",
-            "autoload": {
-                "psr-0": {
-                    "CssMin": "src/"
-                }
-            },
-            "notification-url": "https://packagist.org/downloads/",
-            "license": [
-                "MIT"
-            ],
-            "authors": [
-                {
-                    "name": "Joe Scylla",
-                    "email": "joe.scylla@gmail.com",
-                    "homepage": "https://profiles.google.com/joe.scylla"
-                }
-            ],
-            "description": "Minifying CSS",
-            "homepage": "http://code.google.com/p/cssmin/",
-            "keywords": [
-                "css",
-                "minify"
-            ],
-            "time": "2013-03-15 18:47:32"
-        },
         {
             "name": "pagerfanta/pagerfanta",
             "version": "dev-master",
             "source": {
                 "type": "git",
                 "url": "https://github.com/whiteoctober/Pagerfanta.git",
-                "reference": "797944b0f70f71a24a273752dbf063cba5b11513"
+                "reference": "6d37d04645ab875042e08b54ddacc5c0bd294c44"
             },
             "dist": {
                 "type": "zip",
-                "url": "https://api.github.com/repos/whiteoctober/Pagerfanta/zipball/797944b0f70f71a24a273752dbf063cba5b11513",
-                "reference": "797944b0f70f71a24a273752dbf063cba5b11513",
+                "url": "https://api.github.com/repos/whiteoctober/Pagerfanta/zipball/6d37d04645ab875042e08b54ddacc5c0bd294c44",
+                "reference": "6d37d04645ab875042e08b54ddacc5c0bd294c44",
                 "shasum": ""
             },
             "require": {
@@ -952,7 +1004,7 @@
                 "page",
                 "paging"
             ],
-            "time": "2013-04-10 12:34:33"
+            "time": "2013-04-14 14:47:11"
         },
         {
             "name": "pimple/pimple",
@@ -1257,12 +1309,12 @@
             "source": {
                 "type": "git",
                 "url": "https://github.com/symfony/Console.git",
-                "reference": "04f0be7b0d08fb45591f35b011eb5d3ec507a059"
+                "reference": "74049e36e2e73ca2ec069c9be86d01ba422d44ea"
             },
             "dist": {
                 "type": "zip",
-                "url": "https://api.github.com/repos/symfony/Console/zipball/04f0be7b0d08fb45591f35b011eb5d3ec507a059",
-                "reference": "04f0be7b0d08fb45591f35b011eb5d3ec507a059",
+                "url": "https://api.github.com/repos/symfony/Console/zipball/74049e36e2e73ca2ec069c9be86d01ba422d44ea",
+                "reference": "74049e36e2e73ca2ec069c9be86d01ba422d44ea",
                 "shasum": ""
             },
             "require": {
@@ -1298,7 +1350,7 @@
             ],
             "description": "Symfony Console Component",
             "homepage": "http://symfony.com",
-            "time": "2013-04-12 15:23:00"
+            "time": "2013-04-13 14:06:01"
         },
         {
             "name": "symfony/dependency-injection",
@@ -2305,12 +2357,12 @@
             "source": {
                 "type": "git",
                 "url": "https://github.com/mheap/Silex-Assetic.git",
-                "reference": "a3a2747ca48897ebd1e1def300c58117969ad6aa"
+                "reference": "3294311b34848d1395ab38809756fa03be54fb61"
             },
             "dist": {
                 "type": "zip",
-                "url": "https://api.github.com/repos/mheap/Silex-Assetic/zipball/a3a2747ca48897ebd1e1def300c58117969ad6aa",
-                "reference": "a3a2747ca48897ebd1e1def300c58117969ad6aa",
+                "url": "https://api.github.com/repos/mheap/Silex-Assetic/zipball/3294311b34848d1395ab38809756fa03be54fb61",
+                "reference": "3294311b34848d1395ab38809756fa03be54fb61",
                 "shasum": ""
             },
             "require": {
@@ -2359,11 +2411,53 @@
                 "assetic",
                 "silex"
             ],
-            "time": "2013-04-09 10:37:15"
+            "time": "2013-04-13 08:32:44"
+        },
+        {
+            "name": "natxet/CssMin",
+            "version": "dev-master",
+            "source": {
+                "type": "git",
+                "url": "https://github.com/natxet/CssMin.git",
+                "reference": "9801e2a0de7ae252ca4f2b85542d75a82047a8b4"
+            },
+            "dist": {
+                "type": "zip",
+                "url": "https://api.github.com/repos/natxet/CssMin/zipball/9801e2a0de7ae252ca4f2b85542d75a82047a8b4",
+                "reference": "9801e2a0de7ae252ca4f2b85542d75a82047a8b4",
+                "shasum": ""
+            },
+            "require": {
+                "php": ">=5.0"
+            },
+            "type": "library",
+            "autoload": {
+                "psr-0": {
+                    "CssMin": "src/"
+                }
+            },
+            "notification-url": "https://packagist.org/downloads/",
+            "license": [
+                "MIT"
+            ],
+            "authors": [
+                {
+                    "name": "Joe Scylla",
+                    "email": "joe.scylla@gmail.com",
+                    "homepage": "https://profiles.google.com/joe.scylla"
+                }
+            ],
+            "description": "Minifying CSS",
+            "homepage": "http://code.google.com/p/cssmin/",
+            "keywords": [
+                "css",
+                "minify"
+            ],
+            "time": "2013-03-15 18:47:32"
         },
         {
             "name": "silex/web-profiler",
-            "version": "v1.0.0",
+            "version": "dev-master",
             "target-dir": "Silex/Provider",
             "source": {
                 "type": "git",
@@ -2686,16 +2780,19 @@
         "gedmo/doctrine-extensions": 20,
         "chamilo/chash": 20,
         "pagerfanta/pagerfanta": 20,
+        "franmomu/silex-pagerfanta-provider": 20,
         "knplabs/knp-menu": 20,
         "igorw/config-service-provider": 20,
         "mpdf/mpdf": 20,
         "ezyang/htmlpurifier": 20,
-        "natxet/cssmin": 20,
         "realityking/pchart": 20,
         "imagine/imagine": 20,
         "grom/silex-service-provider": 20,
         "knplabs/knp-snappy": 20,
+        "jmontoyaa/phpqrcode": 20,
         "symfony/browser-kit": 20,
+        "silex/web-profiler": 20,
+        "natxet/cssmin": 20,
         "leafo/lessphp": 20,
         "mheap/silex-assetic": 20
     },

+ 20 - 4
main/inc/global.inc.php

@@ -238,13 +238,12 @@ $app->register(new Silex\Provider\ServiceControllerServiceProvider());
 // Validator provider
 $app->register(new Silex\Provider\ValidatorServiceProvider());
 
-// Implements symfony2 translator
+// Implements Symfony2 translator
 $app->register(new Silex\Provider\TranslationServiceProvider(), array(
     'locale' => 'en',
     'locale_fallback' => 'en'
 ));
 
-
 // Handling po files
 
 /*
@@ -361,6 +360,23 @@ $app['twig'] = $app->share(
 // Registering Menu extension
 $app->register(new \Knp\Menu\Silex\KnpMenuServiceProvider());
 
+//Pagerfanta settings
+use FranMoreno\Silex\Provider\PagerfantaServiceProvider;
+$app->register(new PagerfantaServiceProvider());
+
+$app['pagerfanta.view.options'] = array(
+    'routeName'     => null,
+    'routeParams'   => array(),
+    'pageParameter' => '[page]',
+    'proximity'     => 3,
+    'next_message'  => '&raquo;',
+    'prev_message'  => '&laquo;',
+    'default_view'  => 'twitter_bootstrap'
+);
+
+//$app['pagerfanta.view.router.name']
+//$app['pagerfanta.view.router.params']
+
 //Monolog only available if cache is writable
 if (is_writable($app['cache.path'])) {
 
@@ -431,11 +447,11 @@ if (isset($_configuration['main_database'])) {
 }
 
 define('IMAGE_PROCESSOR', 'gd'); // imagick or gd strings
-/*
+
 $app->register(new Grom\Silex\ImagineServiceProvider(), array(
     'imagine.factory' => 'Gd',
     //'imagine.base_path' => __DIR__.'/vendor/imagine',
-));*/
+));
 
 $app['is_admin'] = false;
 

+ 47 - 66
main/inc/lib/page.lib.php

@@ -17,10 +17,11 @@ use Pagerfanta\View\TwitterBootstrapView;
 
 class PageController
 {
-    public $app;
     public $maxPerPage = 2;
+    private $app;
 
-    function __construct(Application $app) {
+    public function __construct(Application $app)
+    {
         $this->app = $app;
     }
 
@@ -159,7 +160,6 @@ class PageController
             array('href' => $myCourseCategoriesURL, 'title' => get_lang('MyCourseCategories')),
             array('href' => $sessionURL, 'title' => get_lang('Sessions')),
             array('href' => $sessionCategoriesURL, 'title' => get_lang('SessionsCategories')),
-
         );
         $this->show_right_block(get_lang('CourseSessionBlock'), $params, 'course_session_block');
     }
@@ -786,22 +786,22 @@ class PageController
         $pagerfanta->setMaxPerPage($this->maxPerPage); // 10 by default
         $pagerfanta->setCurrentPage($page); // 1 by default
 
-        $view = new TwitterBootstrapView();
-        $app = $this->app;
         //{type}/{category}/{filter}/{page}
-        $routeGenerator = function($page) use ($app, $filter) {
+        /*$routeGenerator = function($page) use ($app, $filter) {
             return $app['url_generator']->generate('userportal', array(
                     'filter' => $filter,
                     'type' => 'courses',
                     'page' => $page)
             );
-        };
-
-        $pagination = $view->render($pagerfanta, $routeGenerator, array(
-            'proximity' => 3,
-        ));
-
-        return $html.$pagination;
+        };*/
+        $this->app['pagerfanta.view.router.name'] = 'userportal';
+        $this->app['pagerfanta.view.router.params'] = array(
+            'filter' => $filter,
+            'type' => 'courses',
+            'page' => $page
+        );
+        $this->app['template']->assign('pagination', $pagerfanta);
+        return $html;
 
     }
 
@@ -823,22 +823,13 @@ class PageController
             $pagerfanta = new Pagerfanta($adapter);
             $pagerfanta->setMaxPerPage($this->maxPerPage); // 10 by default
             $pagerfanta->setCurrentPage($page); // 1 by default
-
-            $view = new TwitterBootstrapView();
-
-            $app = $this->app;
-            $routeGenerator = function($page) use ($app, $filter) {
-                return $app['url_generator']->generate('userportal', array(
-                        'filter' => $filter,
-                        'type' => 'courses',
-                        'page' => $page)
-                );
-            };
-
-            $pagination = $view->render($pagerfanta, $routeGenerator, array(
-                'proximity' => 3,
-            ));
-            $html .= $pagination;
+            $this->app['pagerfanta.view.router.name'] = 'userportal';
+            $this->app['pagerfanta.view.router.params'] = array(
+                'filter' => $filter,
+                'type' => 'courses',
+                'page' => $page
+            );
+            $this->app['template']->assign('pagination', $pagerfanta);
         }
         return $html;
     }
@@ -873,22 +864,27 @@ class PageController
             $pagerfanta->setMaxPerPage($this->maxPerPage); // 10 by default
             $pagerfanta->setCurrentPage($page); // 1 by default
 
+            /*
+            Original pagination construction
             $view = new TwitterBootstrapView();
-
-            $app = $this->app;
-
             $routeGenerator = function($page) use ($app, $filter) {
                 return $app['url_generator']->generate('userportal', array(
-                        'filter' => $filter,
-                        'type' => 'courses',
-                        'page' => $page)
+                    'filter' => $filter,
+                    'type' => 'courses',
+                    'page' => $page)
                 );
             };
-
             $pagination = $view->render($pagerfanta, $routeGenerator, array(
                 'proximity' => 3,
             ));
-            $html .= $pagination;
+            */
+            $this->app['pagerfanta.view.router.name'] = 'userportal';
+            $this->app['pagerfanta.view.router.params'] = array(
+                'filter' => $filter,
+                'type' => 'courses',
+                'page' => $page
+            );
+            $this->app['template']->assign('pagination', $pagerfanta);
         }
         return $html;
     }
@@ -1010,21 +1006,13 @@ class PageController
             $pagerfanta->setMaxPerPage($this->maxPerPage); // 10 by default
             $pagerfanta->setCurrentPage($page); // 1 by default
 
-            $view = new TwitterBootstrapView();
-
-            $app = $this->app;
-            $routeGenerator = function($page) use ($app, $filter) {
-                return $app['url_generator']->generate('userportal', array(
-                        'filter' => $filter,
-                        'type' => 'sessioncategories',
-                        'page' => $page
-                    ));
-            };
-
-            $pagination = $view->render($pagerfanta, $routeGenerator, array(
-                'proximity' => 3,
-            ));
-            $sessions_with_category .= $pagination;
+            $this->app['pagerfanta.view.router.name'] = 'userportal';
+            $this->app['pagerfanta.view.router.params'] = array(
+                'filter' => $filter,
+                'type' => 'sessioncategories',
+                'page' => $page
+            );
+            $this->app['template']->assign('pagination', $pagerfanta);
         }
         return $sessions_with_category;
     }
@@ -1178,20 +1166,13 @@ class PageController
             $pagerfanta->setMaxPerPage($this->maxPerPage); // 10 by default
             $pagerfanta->setCurrentPage($page); // 1 by default
 
-            $view = new TwitterBootstrapView();
-            $app = $this->app;
-            $routeGenerator = function($page) use ($app, $filter) {
-                return $app['url_generator']->generate('userportal', array(
-                        'filter' => $filter,
-                        'type' => 'sessions',
-                        'page' => $page)
-                );
-            };
-
-            $pagination = $view->render($pagerfanta, $routeGenerator, array(
-                'proximity' => 3,
-            ));
-            $sessions_with_no_category .= $pagination;
+            $this->app['pagerfanta.view.router.name'] = 'userportal';
+            $this->app['pagerfanta.view.router.params'] = array(
+                'filter' => $filter,
+                'type' => 'sessions',
+                'page' => $page
+            );
+            $this->app['template']->assign('pagination', $pagerfanta);
         }
         return $sessions_with_no_category;
     }

+ 2 - 7
main/template/default/layout/layout_2_col.tpl

@@ -88,19 +88,14 @@
 
         {% include "default/layout/page_body.tpl" %}
 
-        {#  Welcome to course block  #}
-        {% if welcome_to_course_block %}
-            <section id="welcome_to_course">
-            {% include "default/layout/welcome_to_course.tpl" %}
-            </section>
-        {% endif %}
-
         {% if content is not null %}
             <section id="main_content">
                 {{ content }}
             </section>
         {% endif %}
 
+        {% include "default/layout/page_post_body.tpl" %}
+
 		{#  Announcements  #}
         {% if announcements_block %}
             <section id="announcements">

+ 7 - 0
main/template/default/layout/page_body.tpl

@@ -21,4 +21,11 @@
     <section id="messages">
         {{ message}}
     </section>
+{% endif %}
+
+{#  Welcome to course block  #}
+{% if welcome_to_course_block %}
+    <section id="welcome_to_course">
+        {% include "default/layout/welcome_to_course.tpl" %}
+    </section>
 {% endif %}

+ 3 - 0
main/template/default/layout/page_post_body.tpl

@@ -0,0 +1,3 @@
+{% if pagination != '' %}
+    {{ pagerfanta(pagination, 'twitter_bootstrap', { 'proximity': 3 } ) }}
+{% endif %}

+ 2 - 0
main/template/default/userportal/course_page.tpl

@@ -0,0 +1,2 @@
+{% extends "default/layout/layout_2_col.tpl" %}
+

+ 3 - 0
src/ChamiloLMS/Composer/Tasks.php

@@ -12,6 +12,9 @@ class Tasks
         chmod('../../app/logs', 0777);*/
         //chmod('console', 0500);
         //exec('php console assetic:dump');
+
+        //Removing .git folder in vendors
+        //system('find ./vendor -name ".git" -exec rm -rf {} \;');
     }
 
     public static function postUpdate()