Remove unused lib php-translation/symfony-bundle, comment unused code

pull/3768/head
Julio Montoya 4 years ago
parent 4359c2159a
commit 9731e0b631
  1. 2
      .env
  2. 3
      composer.json
  3. 1
      config/bundles.php
  4. 5
      config/packages/dev/php_translation.yaml
  5. 12
      config/packages/php_translation.yaml
  6. 6
      config/routes/dev/php_translation.yaml
  7. 3
      config/routes/php_translation.yaml
  8. 3
      psalm.xml
  9. 1
      src/CoreBundle/Entity/PortfolioCategory.php

@ -28,7 +28,7 @@ APP_LOCALE='en'
APP_MULTIPLE_ACCESS_URL=''
APP_API_PLATFORM_URL='http://localhost/api/'
#APP_API_PLATFORM_URL='http://localhost/api/' #deprecated
###< chamilo ###

@ -35,6 +35,7 @@
},
"require": {
"php": "^7.4 || ^8.0",
"ext-apcu": "*",
"ext-bcmath": "*",
"ext-ctype": "*",
"ext-curl": "*",
@ -149,7 +150,6 @@
"behat/mink-goutte-driver": "@stable",
"behat/mink-selenium2-driver": "@stable",
"friends-of-behat/mink-extension": "dev-master",
"php-translation/symfony-bundle": "^0.12",
"phpstan/phpstan": "^0.12",
"psalm/plugin-symfony": "^2.0",
"symfony/browser-kit": "^4.0|^5.0",
@ -159,6 +159,7 @@
"symfony/phpunit-bridge": "^5.0",
"symfony/profiler-pack": "*",
"symfony/test-pack": "*",
"symfony/var-dumper": "^5.2",
"symplify/easy-coding-standard": "^9.0",
"vimeo/psalm": "^4.0",
"weirdan/doctrine-psalm-plugin": "^1.0"

@ -27,7 +27,6 @@ return [
Vich\UploaderBundle\VichUploaderBundle::class => ['all' => true],
Cocur\Slugify\Bridge\Symfony\CocurSlugifyBundle::class => ['all' => true],
KnpU\OAuth2ClientBundle\KnpUOAuth2ClientBundle::class => ['all' => true],
Translation\Bundle\TranslationBundle::class => ['all' => true],
Nelmio\CorsBundle\NelmioCorsBundle::class => ['all' => true],
ApiPlatform\Core\Bridge\Symfony\Bundle\ApiPlatformBundle::class => ['all' => true],
Twig\Extra\TwigExtraBundle\TwigExtraBundle::class => ['all' => true],

@ -1,5 +0,0 @@
#translation:
# symfony_profiler:
# enabled: true
# webui:
# enabled: true

@ -1,12 +0,0 @@
translation:
locales: ["en"]
edit_in_place:
enabled: true
config_name: app
#activator: php_translation.edit_in_place.activator
configs:
app:
dirs: ["%kernel.project_dir%/var/templates", "%kernel.project_dir%/src"]
output_dir: "%kernel.project_dir%/src/CoreBundle/Resources/translations"
excluded_names: ["*TestCase.php", "*Test.php"]
excluded_dirs: [cache, data, logs]

@ -1,6 +0,0 @@
_translation_webui:
resource: "@TranslationBundle/Resources/config/routing_webui.yaml"
prefix: /admin
_translation_profiler:
resource: '@TranslationBundle/Resources/config/routing_symfony_profiler.yaml'

@ -1,3 +0,0 @@
_translation_edit_in_place:
resource: '@TranslationBundle/Resources/config/routing_edit_in_place.yaml'
prefix: /admin

@ -162,6 +162,7 @@
<file name="public/main/lp/openoffice_text_document.class.php"/>
<file name="public/main/admin/index.php"/>
<file name="public/main/admin/db.php"/>
<file name="public/main/admin/settings.php"/>
<file name="public/main/admin/periodic_export.php"/>
@ -169,7 +170,9 @@
<file name="public/main/admin/settings.lib.php"/>
<file name="public/main/admin/user_update_import.php"/>
<file name="public/main/admin/teachers_time_by_session_report.php"/>
<file name="public/main/admin/specific_fields.php"/>
<file name="public/main/admin/sub_language*"/>
<file name="public/main/admin/ldap_*"/>
<file name="public/main/admin/special_exports.php"/>

@ -6,7 +6,6 @@ namespace Chamilo\CoreBundle\Entity;
use Chamilo\CoreBundle\Traits\UserTrait;
use Doctrine\Common\Collections\ArrayCollection;
use Doctrine\Common\Collections\Collection;
use Doctrine\Common\Collections\Criteria;
use Doctrine\ORM\Mapping as ORM;

Loading…
Cancel
Save