Use jbtronics/translation-editor bundle instead of php-translation/symfony-bundle for profiler translation editing

This new bundle has less dependencies and less overhead
This commit is contained in:
Jan Böhmer 2024-09-08 20:03:33 +02:00
parent 7db44f0ec5
commit 283a445198
9 changed files with 137 additions and 486 deletions

View file

@ -43,7 +43,6 @@
"omines/datatables-bundle": "^0.8.0",
"paragonie/sodium_compat": "^1.21",
"part-db/label-fonts": "^1.0",
"php-translation/symfony-bundle": "^0.14.0",
"phpdocumentor/reflection-docblock": "^5.2",
"phpstan/phpdoc-parser": "^1.23",
"runtime/frankenphp-symfony": "^0.2.0",
@ -99,6 +98,7 @@
"dama/doctrine-test-bundle": "^v8.0.0",
"doctrine/doctrine-fixtures-bundle": "^3.2",
"ekino/phpstan-banned-code": "^v1.0.0",
"jbtronics/translation-editor-bundle": "^1.0",
"phpstan/extension-installer": "^1.0",
"phpstan/phpstan": "^1.4.7",
"phpstan/phpstan-doctrine": "^1.2.11",

551
composer.lock generated
View file

@ -4,7 +4,7 @@
"Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies",
"This file is @generated automatically"
],
"content-hash": "2b28082ea8c6d8963cbf7eec953ca0d0",
"content-hash": "465fa2ab7f9f8dad2b8cfbeaa640c136",
"packages": [
{
"name": "amphp/amp",
@ -1584,82 +1584,6 @@
},
"time": "2024-04-12T12:12:48+00:00"
},
{
"name": "doctrine/annotations",
"version": "2.0.2",
"source": {
"type": "git",
"url": "https://github.com/doctrine/annotations.git",
"reference": "901c2ee5d26eb64ff43c47976e114bf00843acf7"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/doctrine/annotations/zipball/901c2ee5d26eb64ff43c47976e114bf00843acf7",
"reference": "901c2ee5d26eb64ff43c47976e114bf00843acf7",
"shasum": ""
},
"require": {
"doctrine/lexer": "^2 || ^3",
"ext-tokenizer": "*",
"php": "^7.2 || ^8.0",
"psr/cache": "^1 || ^2 || ^3"
},
"require-dev": {
"doctrine/cache": "^2.0",
"doctrine/coding-standard": "^10",
"phpstan/phpstan": "^1.10.28",
"phpunit/phpunit": "^7.5 || ^8.5 || ^9.5",
"symfony/cache": "^5.4 || ^6.4 || ^7",
"vimeo/psalm": "^4.30 || ^5.14"
},
"suggest": {
"php": "PHP 8.0 or higher comes with attributes, a native replacement for annotations"
},
"type": "library",
"autoload": {
"psr-4": {
"Doctrine\\Common\\Annotations\\": "lib/Doctrine/Common/Annotations"
}
},
"notification-url": "https://packagist.org/downloads/",
"license": [
"MIT"
],
"authors": [
{
"name": "Guilherme Blanco",
"email": "guilhermeblanco@gmail.com"
},
{
"name": "Roman Borschel",
"email": "roman@code-factory.org"
},
{
"name": "Benjamin Eberlei",
"email": "kontakt@beberlei.de"
},
{
"name": "Jonathan Wage",
"email": "jonwage@gmail.com"
},
{
"name": "Johannes Schmitt",
"email": "schmittjoh@gmail.com"
}
],
"description": "Docblock Annotations Parser",
"homepage": "https://www.doctrine-project.org/projects/annotations.html",
"keywords": [
"annotations",
"docblock",
"parser"
],
"support": {
"issues": "https://github.com/doctrine/annotations/issues",
"source": "https://github.com/doctrine/annotations/tree/2.0.2"
},
"time": "2024-09-05T10:17:24+00:00"
},
{
"name": "doctrine/cache",
"version": "2.2.0",
@ -5857,64 +5781,6 @@
},
"time": "2024-09-03T15:05:21+00:00"
},
{
"name": "nikic/php-parser",
"version": "v5.1.0",
"source": {
"type": "git",
"url": "https://github.com/nikic/PHP-Parser.git",
"reference": "683130c2ff8c2739f4822ff7ac5c873ec529abd1"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/nikic/PHP-Parser/zipball/683130c2ff8c2739f4822ff7ac5c873ec529abd1",
"reference": "683130c2ff8c2739f4822ff7ac5c873ec529abd1",
"shasum": ""
},
"require": {
"ext-ctype": "*",
"ext-json": "*",
"ext-tokenizer": "*",
"php": ">=7.4"
},
"require-dev": {
"ircmaxell/php-yacc": "^0.0.7",
"phpunit/phpunit": "^9.0"
},
"bin": [
"bin/php-parse"
],
"type": "library",
"extra": {
"branch-alias": {
"dev-master": "5.0-dev"
}
},
"autoload": {
"psr-4": {
"PhpParser\\": "lib/PhpParser"
}
},
"notification-url": "https://packagist.org/downloads/",
"license": [
"BSD-3-Clause"
],
"authors": [
{
"name": "Nikita Popov"
}
],
"description": "A PHP parser written in PHP",
"keywords": [
"parser",
"php"
],
"support": {
"issues": "https://github.com/nikic/PHP-Parser/issues",
"source": "https://github.com/nikic/PHP-Parser/tree/v5.1.0"
},
"time": "2024-07-01T20:03:41+00:00"
},
{
"name": "nikolaposa/version",
"version": "4.2.0",
@ -5976,63 +5842,6 @@
},
"time": "2023-12-29T22:07:54+00:00"
},
{
"name": "nyholm/nsa",
"version": "1.3.0",
"source": {
"type": "git",
"url": "https://github.com/Nyholm/NSA.git",
"reference": "c264c17ed2aa8251c64ad289442ed53f64cdb283"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/Nyholm/NSA/zipball/c264c17ed2aa8251c64ad289442ed53f64cdb283",
"reference": "c264c17ed2aa8251c64ad289442ed53f64cdb283",
"shasum": ""
},
"require": {
"php": ">=7.1",
"webmozart/assert": "^1.1.0"
},
"require-dev": {
"symfony/phpunit-bridge": "^4.4 || ^5.1"
},
"type": "library",
"autoload": {
"psr-4": {
"Nyholm\\": "src/"
}
},
"notification-url": "https://packagist.org/downloads/",
"license": [
"MIT"
],
"authors": [
{
"name": "Tobias Nyholm",
"email": "tobias.nyholm@gmail.com"
}
],
"description": "See everything and do whatever you want. No privacy rule will stop us. Used in tests, debugging and fixtures to access properties and methods.",
"homepage": "https://tnyholm.se",
"keywords": [
"Fixture",
"debug",
"reflection",
"test"
],
"support": {
"issues": "https://github.com/Nyholm/NSA/issues",
"source": "https://github.com/Nyholm/NSA/tree/1.3.0"
},
"funding": [
{
"url": "https://github.com/nyholm",
"type": "github"
}
],
"time": "2021-07-15T18:25:37+00:00"
},
{
"name": "nyholm/psr7",
"version": "1.8.1",
@ -6719,236 +6528,6 @@
},
"time": "2024-03-15T13:55:21+00:00"
},
{
"name": "php-translation/common",
"version": "3.3.0",
"source": {
"type": "git",
"url": "https://github.com/php-translation/common.git",
"reference": "f5e0e36222bcf400310d089646f8cde1648ca974"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/php-translation/common/zipball/f5e0e36222bcf400310d089646f8cde1648ca974",
"reference": "f5e0e36222bcf400310d089646f8cde1648ca974",
"shasum": ""
},
"require": {
"php": ">=7.2",
"symfony/translation": " ^3.4 || ^4.3 || ^5.0 || ^6.0 || ^7.0"
},
"require-dev": {
"phpspec/prophecy-phpunit": "^2.1",
"phpunit/phpunit": ">=8.5.23",
"symfony/framework-bundle": " ^3.4 || ^4.3 || ^5.0 || ^6.0 || ^7.0"
},
"type": "library",
"autoload": {
"psr-4": {
"Translation\\Common\\": "src/"
}
},
"notification-url": "https://packagist.org/downloads/",
"license": [
"MIT"
],
"authors": [
{
"name": "Tobias Nyholm",
"email": "tobias.nyholm@gmail.com"
}
],
"description": "Common translation stuff",
"support": {
"issues": "https://github.com/php-translation/common/issues",
"source": "https://github.com/php-translation/common/tree/3.3.0"
},
"time": "2024-01-29T16:29:12+00:00"
},
{
"name": "php-translation/extractor",
"version": "2.2.0",
"source": {
"type": "git",
"url": "https://github.com/php-translation/extractor.git",
"reference": "44d869006c1131f0ebe1d358fd691621eacc3e45"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/php-translation/extractor/zipball/44d869006c1131f0ebe1d358fd691621eacc3e45",
"reference": "44d869006c1131f0ebe1d358fd691621eacc3e45",
"shasum": ""
},
"require": {
"doctrine/annotations": "^1.7 || ^2.0",
"nikic/php-parser": "^4.0 || ^5.0",
"php": "^8.1",
"symfony/finder": "^5.4 || ^6.4 || ^7.0",
"twig/twig": "^2.0 || ^3.0"
},
"require-dev": {
"knplabs/knp-menu": "^3.1",
"symfony/phpunit-bridge": "^5.4 || ^6.4 || ^7.0",
"symfony/translation": "^5.4 || ^6.4 || ^7.0",
"symfony/twig-bridge": "^5.4 || ^6.4 || ^7.0",
"symfony/validator": "^5.4 || ^6.4 || ^7.0"
},
"type": "library",
"extra": {
"branch-alias": {
"dev-master": "2.0-dev"
}
},
"autoload": {
"psr-4": {
"Translation\\Extractor\\": "src/"
}
},
"notification-url": "https://packagist.org/downloads/",
"license": [
"MIT"
],
"authors": [
{
"name": "Tobias Nyholm",
"email": "tobias.nyholm@gmail.com"
}
],
"description": "Extract translations form the source code",
"support": {
"issues": "https://github.com/php-translation/extractor/issues",
"source": "https://github.com/php-translation/extractor/tree/2.2.0"
},
"time": "2024-06-11T21:40:32+00:00"
},
{
"name": "php-translation/symfony-bundle",
"version": "0.14.3",
"source": {
"type": "git",
"url": "https://github.com/php-translation/symfony-bundle.git",
"reference": "722e61673af494824b585b32bc619200b28729e4"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/php-translation/symfony-bundle/zipball/722e61673af494824b585b32bc619200b28729e4",
"reference": "722e61673af494824b585b32bc619200b28729e4",
"shasum": ""
},
"require": {
"nyholm/nsa": "^1.1",
"php": "^8.0",
"php-translation/extractor": "^2.0",
"php-translation/symfony-storage": "^2.1",
"symfony/asset": "^5.3 || ^6.0",
"symfony/console": "^5.3 || ^6.0",
"symfony/finder": "^5.3 || ^6.0",
"symfony/framework-bundle": "^5.3 || ^6.0",
"symfony/intl": "^5.3 || ^6.0",
"symfony/translation": "^5.3 || ^6.0",
"symfony/twig-bundle": "^5.3 || ^6.0",
"symfony/validator": "^5.3 || ^6.0",
"twig/twig": "^2.14.4 || ^3.3"
},
"require-dev": {
"bamarni/composer-bin-plugin": "^1.3",
"matthiasnoback/symfony-config-test": "^4.1",
"matthiasnoback/symfony-dependency-injection-test": "^4.1",
"nyholm/psr7": "^1.1",
"nyholm/symfony-bundle-test": "^2.0",
"php-http/curl-client": "^1.7 || ^2.0",
"php-http/message": "^1.11",
"php-http/message-factory": "^1.0.2",
"php-translation/translator": "^1.0",
"symfony/dependency-injection": "^5.3 || ^6.0",
"symfony/phpunit-bridge": "^5.2 || ^6.0",
"symfony/twig-bridge": "^5.3 || ^6.0",
"symfony/web-profiler-bundle": "^5.3 || ^6.0"
},
"suggest": {
"php-http/httplug-bundle": "To easier configure your httplug clients."
},
"type": "symfony-bundle",
"extra": {
"branch-alias": {
"dev-master": "0.12-dev"
}
},
"autoload": {
"psr-4": {
"Translation\\Bundle\\": ""
},
"exclude-from-classmap": [
"/Tests/"
]
},
"notification-url": "https://packagist.org/downloads/",
"license": [
"MIT"
],
"authors": [
{
"name": "Tobias Nyholm",
"email": "tobias.nyholm@gmail.com"
}
],
"support": {
"issues": "https://github.com/php-translation/symfony-bundle/issues",
"source": "https://github.com/php-translation/symfony-bundle/tree/0.14.3"
},
"time": "2023-12-15T14:18:10+00:00"
},
{
"name": "php-translation/symfony-storage",
"version": "2.4.0",
"source": {
"type": "git",
"url": "https://github.com/php-translation/symfony-storage.git",
"reference": "0f4702c5837802507231ee6649c49b57b6d7ab89"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/php-translation/symfony-storage/zipball/0f4702c5837802507231ee6649c49b57b6d7ab89",
"reference": "0f4702c5837802507231ee6649c49b57b6d7ab89",
"shasum": ""
},
"require": {
"php": "^7.2 || ^8.0",
"php-translation/common": "^3.0",
"symfony/translation": "^3.4 || ^4.2 || ^5.0 || ^6.0 || ^7.0"
},
"require-dev": {
"phpunit/phpunit": ">=8.5.20",
"symfony/framework-bundle": " ^3.4 || ^4.2 || ^5.0 || ^6.0 || ^7.0"
},
"type": "library",
"extra": {
"branch-alias": {
"dev-master": "2.4-dev"
}
},
"autoload": {
"psr-4": {
"Translation\\SymfonyStorage\\": "src/"
}
},
"notification-url": "https://packagist.org/downloads/",
"license": [
"MIT"
],
"authors": [
{
"name": "Tobias Nyholm",
"email": "tobias.nyholm@gmail.com"
}
],
"description": "A translation file storage using Symfony translation component.",
"support": {
"issues": "https://github.com/php-translation/symfony-storage/issues",
"source": "https://github.com/php-translation/symfony-storage/tree/2.4.0"
},
"time": "2024-01-29T16:41:31+00:00"
},
{
"name": "phpdocumentor/reflection-common",
"version": "2.2.0",
@ -16231,6 +15810,76 @@
},
"time": "2021-11-02T08:37:34+00:00"
},
{
"name": "jbtronics/translation-editor-bundle",
"version": "v1.0",
"source": {
"type": "git",
"url": "https://github.com/jbtronics/translation-editor-bundle.git",
"reference": "4e771c290bf73dded061808bc3ba3c56bc35aa06"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/jbtronics/translation-editor-bundle/zipball/4e771c290bf73dded061808bc3ba3c56bc35aa06",
"reference": "4e771c290bf73dded061808bc3ba3c56bc35aa06",
"shasum": ""
},
"require": {
"ext-json": "*",
"php": "^8.1",
"symfony/deprecation-contracts": "^3.4",
"symfony/framework-bundle": "^6.4|^7.0",
"symfony/translation": "^7.0|^6.4",
"symfony/translation-contracts": "^2.5|^3.0",
"symfony/twig-bundle": "^7.0|^6.4",
"symfony/web-profiler-bundle": "^7.0|^6.4"
},
"require-dev": {
"ekino/phpstan-banned-code": "^1.0",
"phpstan/extension-installer": "^1.3",
"phpstan/phpstan": "^1.10",
"phpstan/phpstan-strict-rules": "^1.5",
"roave/security-advisories": "dev-latest"
},
"type": "symfony-bundle",
"autoload": {
"psr-4": {
"Jbtronics\\TranslationEditorBundle\\": "src/"
}
},
"notification-url": "https://packagist.org/downloads/",
"license": [
"MIT"
],
"authors": [
{
"name": "Jan Böhmer",
"email": "mail@jan-boehmer.de"
}
],
"description": "A symfony bundle to allow editing translations in the symfony profiler",
"keywords": [
"profiler",
"symfony",
"symfony-bundle",
"translations"
],
"support": {
"issues": "https://github.com/jbtronics/translation-editor-bundle/issues",
"source": "https://github.com/jbtronics/translation-editor-bundle/tree/v1.0"
},
"funding": [
{
"url": "https://www.paypal.me/do9jhb",
"type": "custom"
},
{
"url": "https://github.com/jbtronics",
"type": "github"
}
],
"time": "2024-09-03T16:44:00+00:00"
},
{
"name": "myclabs/deep-copy",
"version": "1.12.0",
@ -16291,6 +15940,64 @@
],
"time": "2024-06-12T14:39:25+00:00"
},
{
"name": "nikic/php-parser",
"version": "v5.1.0",
"source": {
"type": "git",
"url": "https://github.com/nikic/PHP-Parser.git",
"reference": "683130c2ff8c2739f4822ff7ac5c873ec529abd1"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/nikic/PHP-Parser/zipball/683130c2ff8c2739f4822ff7ac5c873ec529abd1",
"reference": "683130c2ff8c2739f4822ff7ac5c873ec529abd1",
"shasum": ""
},
"require": {
"ext-ctype": "*",
"ext-json": "*",
"ext-tokenizer": "*",
"php": ">=7.4"
},
"require-dev": {
"ircmaxell/php-yacc": "^0.0.7",
"phpunit/phpunit": "^9.0"
},
"bin": [
"bin/php-parse"
],
"type": "library",
"extra": {
"branch-alias": {
"dev-master": "5.0-dev"
}
},
"autoload": {
"psr-4": {
"PhpParser\\": "lib/PhpParser"
}
},
"notification-url": "https://packagist.org/downloads/",
"license": [
"BSD-3-Clause"
],
"authors": [
{
"name": "Nikita Popov"
}
],
"description": "A PHP parser written in PHP",
"keywords": [
"parser",
"php"
],
"support": {
"issues": "https://github.com/nikic/PHP-Parser/issues",
"source": "https://github.com/nikic/PHP-Parser/tree/v5.1.0"
},
"time": "2024-07-01T20:03:41+00:00"
},
{
"name": "phar-io/manifest",
"version": "2.0.4",

View file

@ -18,7 +18,6 @@ return [
DAMA\DoctrineTestBundle\DAMADoctrineTestBundle::class => ['test' => true],
Twig\Extra\TwigExtraBundle\TwigExtraBundle::class => ['all' => true],
Gregwar\CaptchaBundle\GregwarCaptchaBundle::class => ['all' => true],
Translation\Bundle\TranslationBundle::class => ['all' => true],
Florianv\SwapBundle\FlorianvSwapBundle::class => ['all' => true],
Nelmio\SecurityBundle\NelmioSecurityBundle::class => ['all' => true],
Symfony\UX\Turbo\TurboBundle::class => ['all' => true],
@ -32,4 +31,5 @@ return [
KnpU\OAuth2ClientBundle\KnpUOAuth2ClientBundle::class => ['all' => true],
Nelmio\CorsBundle\NelmioCorsBundle::class => ['all' => true],
ApiPlatform\Symfony\Bundle\ApiPlatformBundle::class => ['all' => true],
Jbtronics\TranslationEditorBundle\JbtronicsTranslationEditorBundle::class => ['dev' => true],
];

View file

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

View file

@ -1,11 +0,0 @@
translation:
locales: ["en", "de"]
edit_in_place:
enabled: false
config_name: app
configs:
app:
dirs: ["%kernel.project_dir%/templates", "%kernel.project_dir%/src"]
output_dir: "%kernel.project_dir%/translations"
excluded_names: ["*TestCase.php", "*Test.php"]
excluded_dirs: [cache, data, logs]

View file

@ -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'

View file

@ -0,0 +1,3 @@
when@dev:
translation_editor:
resource: '@JbtronicsTranslationEditorBundle/config/routes.php'

View file

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

View file

@ -40,16 +40,6 @@
"./config/packages/dama_doctrine_test_bundle.yaml"
]
},
"doctrine/annotations": {
"version": "1.14",
"recipe": {
"repo": "github.com/symfony/recipes",
"branch": "main",
"version": "1.10",
"ref": "64d8583af5ea57b7afa4aba4b159907f3a148b05"
},
"files": []
},
"doctrine/cache": {
"version": "v1.8.0"
},
@ -167,6 +157,9 @@
"jbtronics/dompdf-font-loader-bundle": {
"version": "v1.1.1"
},
"jbtronics/translation-editor-bundle": {
"version": "v1.0"
},
"knpuniversity/oauth2-client-bundle": {
"version": "2.15",
"recipe": {
@ -237,9 +230,6 @@
"nikolaposa/version": {
"version": "2.2.2"
},
"nyholm/nsa": {
"version": "1.1.0"
},
"nyholm/psr7": {
"version": "1.0",
"recipe": {
@ -291,30 +281,6 @@
"php-http/promise": {
"version": "v1.0.0"
},
"php-translation/common": {
"version": "1.0.0"
},
"php-translation/extractor": {
"version": "1.7.1"
},
"php-translation/symfony-bundle": {
"version": "0.12",
"recipe": {
"repo": "github.com/symfony/recipes-contrib",
"branch": "master",
"version": "0.10",
"ref": "f3ca4e4da63897d177e58da78626c20648c0e102"
},
"files": [
"config/packages/dev/php_translation.yaml",
"config/packages/php_translation.yaml",
"config/routes/dev/php_translation.yaml",
"config/routes/php_translation.yaml"
]
},
"php-translation/symfony-storage": {
"version": "1.0.1"
},
"phpdocumentor/reflection-common": {
"version": "1.0.1"
},