Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,10 @@
},
"require": {
"php": ">=8.3",
"symfony/http-kernel": "^7.2"
"symfony/config": "^7.4",
"symfony/dependency-injection": "^7.4",
"symfony/http-kernel": "^7.4",
"symfony/yaml": "^7.4"
},
"require-dev": {
"ibexa/code-style": "~2.0.0"
Expand Down
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,9 @@
"move-ckeditor5-core": "cp -r node_modules/ckeditor5 src/bundle/Resources/public/vendors/ckeditor5",
"move-ids-assets": "mkdir src/bundle/Resources/public/vendors/ids-assets && cp -r node_modules/@ibexa/design-system/packages/assets/dist src/bundle/Resources/public/vendors/ids-assets/dist",
"move-ids-components": "mkdir src/bundle/Resources/public/vendors/ids-components && cp -r node_modules/@ibexa/design-system/packages/components/dist src/bundle/Resources/public/vendors/ids-components/dist",
"move-ids-components-translations": "mkdir -p src/bundle/Resources/translations && cp node_modules/@ibexa/design-system/packages/components/assets/ibexa_design_system.en.xliff src/bundle/Resources/translations/ibexa_design_system.en.xliff",
"move-ids-core": "mkdir src/bundle/Resources/public/vendors/ids-core && cp -r node_modules/@ibexa/design-system/packages/core/dist src/bundle/Resources/public/vendors/ids-core/dist",
"prepare-release": "yarn run create-folder; yarn run move-bootstrap; yarn run move-jquery; yarn run move-leaflet; yarn run move-react; yarn run move-react-dom; yarn run move-popperjs; yarn run move-flatpickr; yarn run move-create-react-class; yarn run move-prop-types; yarn run move-moment; yarn run move-moment-timezone; yarn run move-d3; yarn run move-dagre-d3; yarn run move-chart-js; yarn run move-js-md5; yarn run move-ckeditor5; yarn run move-ckeditor5-core; yarn run move-chartjs-plugin-datalabels; yarn run move-ids-assets; yarn run move-ids-components; yarn run move-ids-core"
"prepare-release": "yarn run create-folder; yarn run move-bootstrap; yarn run move-jquery; yarn run move-leaflet; yarn run move-react; yarn run move-react-dom; yarn run move-popperjs; yarn run move-flatpickr; yarn run move-create-react-class; yarn run move-prop-types; yarn run move-moment; yarn run move-moment-timezone; yarn run move-d3; yarn run move-dagre-d3; yarn run move-chart-js; yarn run move-js-md5; yarn run move-ckeditor5; yarn run move-ckeditor5-core; yarn run move-chartjs-plugin-datalabels; yarn run move-ids-assets; yarn run move-ids-components; yarn run move-ids-components-translations; yarn run move-ids-core"
},
"repository": {
"type": "git",
Expand Down
36 changes: 36 additions & 0 deletions src/bundle/DependencyInjection/IbexaAdminUiAssetsExtension.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
<?php

/**
* @copyright Copyright (C) Ibexa AS. All rights reserved.
* @license For full copyright and license information view LICENSE file distributed with this source code.
*/
declare(strict_types=1);

namespace Ibexa\Bundle\AdminUiAssets\DependencyInjection;

use Symfony\Component\Config\Resource\FileResource;
use Symfony\Component\DependencyInjection\ContainerBuilder;
use Symfony\Component\DependencyInjection\Extension\Extension;
use Symfony\Component\DependencyInjection\Extension\PrependExtensionInterface;
use Symfony\Component\Yaml\Yaml;

final class IbexaAdminUiAssetsExtension extends Extension implements PrependExtensionInterface
{
public function load(array $configs, ContainerBuilder $container): void
{
// Intentionally left empty: this bundle only prepends Bazinga JS translation config.
}

public function prepend(ContainerBuilder $container): void
{
$this->prependBazingaJsTranslationConfiguration($container);
}

private function prependBazingaJsTranslationConfiguration(ContainerBuilder $container): void
{
$configFile = __DIR__ . '/../Resources/config/bazinga_js_translation.yaml';
$config = Yaml::parseFile($configFile);
$container->prependExtensionConfig('bazinga_js_translation', $config);
$container->addResource(new FileResource($configFile));
}
}
2 changes: 2 additions & 0 deletions src/bundle/Resources/config/bazinga_js_translation.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
active_domains:
- 'ibexa_design_system'
Loading