Skip to content

Commit d03c794

Browse files
authored
Merge pull request #4 from patrickjDE/feature-managed
managed edition compatibility
2 parents 410063e + 9d58f1c commit d03c794

File tree

2 files changed

+30
-0
lines changed

2 files changed

+30
-0
lines changed

ContaoManager/Plugin.php

+23
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
<?php
2+
3+
namespace Fuzzyma\Contao\DatabaseCommandsBundle\ContaoManager;
4+
5+
use Contao\CoreBundle\ContaoCoreBundle;
6+
use Contao\ManagerPlugin\Bundle\BundlePluginInterface;
7+
use Contao\ManagerPlugin\Bundle\Parser\ParserInterface;
8+
use Contao\ManagerPlugin\Bundle\Config\BundleConfig;
9+
use Fuzzyma\Contao\DatabaseCommandsBundle\ContaoDatabaseCommandsBundle;
10+
11+
class Plugin implements BundlePluginInterface
12+
{
13+
/**
14+
* {@inheritdoc}
15+
*/
16+
public function getBundles(ParserInterface $parser)
17+
{
18+
return [
19+
BundleConfig::create(ContaoDatabaseCommandsBundle::class)
20+
->setLoadAfter([ContaoCoreBundle::class]),
21+
];
22+
}
23+
}

composer.json

+7
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,13 @@
1919
}
2020
],
2121
"require-dev": {
22+
"contao/manager-plugin": "^2.0",
2223
"phpunit/phpunit": "^5.4"
24+
},
25+
"conflict": {
26+
"contao/manager-plugin": "<2.0 || >=3.0"
27+
},
28+
"extra": {
29+
"contao-manager-plugin": "Fuzzyma\\Contao\\DatabaseCommandsBundle\\ContaoManager\\Plugin"
2330
}
2431
}

0 commit comments

Comments
 (0)