Fixed bundle

This commit is contained in:
Carsten Götzinger 2018-02-13 10:14:59 +01:00
parent 265f39b349
commit e2c08f327e
6 changed files with 70 additions and 84 deletions

View File

@ -31,23 +31,9 @@
"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": { "contao-manager-plugin": "cgoIT\\aeo\\ContaoManagerPlugin"
"sources": {
"": "system/modules/zaeo"
},
},
"contao-manager-plugin": "cgoIT\\aeo\\ContaoManager\\Plugin"
} }
} }

View File

@ -7,7 +7,7 @@ use Symfony\Component\HttpKernel\Bundle\Bundle;
/** /**
* Configures the Contao aeo bundle. * Configures the Contao aeo bundle.
* *
* @author Carsten Götzinger * @author Carsten Götzinger
*/ */
class CgoITAeoBundle extends Bundle class CgoITAeoBundle extends Bundle
{ {

View File

@ -9,9 +9,9 @@ use Contao\ManagerPlugin\Bundle\Parser\ParserInterface;
/** /**
* Plugin for the Contao Manager. * Plugin for the Contao Manager.
* *
* @author Carsten Götzinger * @author Carsten Götzinger
*/ */
class Plugin implements BundlePluginInterface class ContaoManagerPlugin implements BundlePluginInterface
{ {
/** /**
* {@inheritdoc} * {@inheritdoc}
@ -19,7 +19,7 @@ class Plugin implements BundlePluginInterface
public function getBundles(ParserInterface $parser) public function getBundles(ParserInterface $parser)
{ {
return [ return [
BundleConfig::create('cgoIT\aeo\CgoITAeoBundle') BundleConfig::create('CgoITAeoBundle::class')
->setLoadAfter(['Contao\CoreBundle\ContaoCoreBundle']) ->setLoadAfter(['Contao\CoreBundle\ContaoCoreBundle'])
->setLoadAfter(['*']) ->setLoadAfter(['*'])
->setReplace(['aeo']), ->setReplace(['aeo']),