Skip to content

Commit

Permalink
Updated bundle structure and require Contao 4.9+
Browse files Browse the repository at this point in the history
  • Loading branch information
aschempp committed Mar 16, 2023
1 parent 3dd8dd6 commit 57d6fc9
Show file tree
Hide file tree
Showing 21 changed files with 36 additions and 32 deletions.
51 changes: 27 additions & 24 deletions composer.json
Original file line number Diff line number Diff line change
@@ -1,31 +1,37 @@
{
"name":"terminal42/dc_multilingual",
"description":"A multilingual DC driver storing the translations in the same table for Contao Open Source CMS",
"keywords":["contao", "multilingual", "driver"],
"type":"contao-module",
"license":"LGPL-3.0+",
"authors":[{
"name":"terminal42 gmbh",
"homepage":"https://www.terminal42.ch"
}, {
"name":"Codefog",
"homepage":"http://codefog.pl"
}],
"funding": [{
"type": "github",
"url": "https://github.com/terminal42"
}, {
"type": "other",
"url": "https://ko-fi.com/terminal42"
}],
"name": "terminal42/dc_multilingual",
"description": "A multilingual DC driver storing the translations in the same table for Contao Open Source CMS",
"keywords": ["contao", "multilingual", "driver"],
"type": "contao-bundle",
"license": "LGPL-3.0+",
"authors": [
{
"name": "terminal42 gmbh",
"homepage": "https://www.terminal42.ch"
},
{
"name": "Codefog",
"homepage": "https://codefog.pl"
}
],
"funding": [
{
"type": "github",
"url": "https://github.com/terminal42"
},
{
"type": "other",
"url": "https://ko-fi.com/terminal42"
}
],
"support": {
"issues": "https://github.com/terminal42/contao-DC_Multilingual/issues",
"source": "https://github.com/terminal42/contao-DC_Multilingual",
"forum": "https://community.contao.org"
},
"require":{
"require": {
"php": "^7.1 || ^8.0",
"contao/core-bundle": "^4.4",
"contao/core-bundle": "^4.9",
"doctrine/dbal": "^2.11 || ^3.0"
},
"require-dev": {
Expand All @@ -35,9 +41,6 @@
"conflict": {
"contao/manager-plugin": "<2.0 || >=3.0"
},
"replace": {
"contao-legacy/dc_multilingual": "self.version"
},
"autoload": {
"classmap": [
"src/DC_Multilingual.php"
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
6 changes: 3 additions & 3 deletions gulpfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ const production = true;

// Configuration
const styles = [
'src/Resources/public/*.css',
'!src/Resources/public/*.min.css'
'public/*.css',
'!public/*.min.css'
];

// Build styles
Expand All @@ -27,7 +27,7 @@ gulp.task('styles', function () {
gulp.task('watch', function () {
gulp.watch(
[
'src/Resources/public/*.css'
'public/*.css'
],
['styles']
);
Expand Down
File renamed without changes.
File renamed without changes.
7 changes: 2 additions & 5 deletions src/DependencyInjection/Terminal42DcMultilingualExtension.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,11 +20,8 @@ class Terminal42DcMultilingualExtension extends Extension
{
public function load(array $configs, ContainerBuilder $container)
{
$loader = new YamlFileLoader(
$container,
new FileLocator(__DIR__.'/../Resources/config')
);
$loader = new YamlFileLoader($container, new FileLocator(__DIR__.'/../../config'));

$loader->load('services.yml');
$loader->load('services.yaml');
}
}
4 changes: 4 additions & 0 deletions src/Terminal42DcMultilingualBundle.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,4 +15,8 @@

class Terminal42DcMultilingualBundle extends Bundle
{
public function getPath(): string
{
return \dirname(__DIR__);
}
}

0 comments on commit 57d6fc9

Please sign in to comment.