fixed bundle

This commit is contained in:
Carsten Götzinger 2018-02-13 10:50:35 +01:00
parent 8797ca30e7
commit 2f50351f5f
2 changed files with 13 additions and 3 deletions

View File

@ -31,7 +31,16 @@
"autoload": { "autoload": {
"psr-4": { "psr-4": {
"cgoIT\\aeo\\": "src/" "cgoIT\\aeo\\": "src/"
} },
"classmap": [
"src/Resources/contao/"
],
"exclude-from-classmap": [
"src/Resources/contao/config/",
"src/Resources/contao/dca/",
"src/Resources/contao/languages/",
"src/Resources/contao/templates/"
]
}, },
"extra": { "extra": {
"contao-manager-plugin": "cgoIT\\aeo\\ContaoManagerPlugin" "contao-manager-plugin": "cgoIT\\aeo\\ContaoManagerPlugin"

View File

@ -2,6 +2,7 @@
namespace cgoIT\aeo; namespace cgoIT\aeo;
use Contao\CoreBundle\ContaoCoreBundle;
use Contao\ManagerPlugin\Bundle\Config\BundleConfig; use Contao\ManagerPlugin\Bundle\Config\BundleConfig;
use Contao\ManagerPlugin\Bundle\BundlePluginInterface; use Contao\ManagerPlugin\Bundle\BundlePluginInterface;
use Contao\ManagerPlugin\Bundle\Parser\ParserInterface; use Contao\ManagerPlugin\Bundle\Parser\ParserInterface;
@ -19,8 +20,8 @@ class ContaoManagerPlugin implements BundlePluginInterface
public function getBundles(ParserInterface $parser) public function getBundles(ParserInterface $parser)
{ {
return [ return [
BundleConfig::create('CgoITAeoBundle::class') BundleConfig::create(CgoITAeoBundle::class)
->setLoadAfter(['Contao\CoreBundle\ContaoCoreBundle']) ->setLoadAfter([ContaoCoreBundle::class])
->setLoadAfter(['*']) ->setLoadAfter(['*'])
->setReplace(['aeo']), ->setReplace(['aeo']),
]; ];