Ich habe in wirklichkeit schon 3 (Test)Bundles die funktionieren. Hab einfach immer im Contaomanager composer-update, alle Caches leeren, Datei aktualisieren (Class Loader) und dann gingen zumindest die 3 (Test)Bundles. Hab die 3 Bundles vohrer nur übersichtshalber nicht gezeigt.
Code:
{
"type": "project",
"require": {
"alpdesk/alpdesk-frontendediting": "^1.2",
"contao-themes-net/zero-one-theme-bundle": "^1.8",
"contao/calendar-bundle": "4.9.*",
"contao/comments-bundle": "4.9.*",
"contao/conflicts": "*@dev",
"contao/faq-bundle": "4.9.*",
"contao/listing-bundle": "4.9.*",
"contao/manager-bundle": "4.9.*",
"contao/news-bundle": "4.9.*",
"contao/newsletter-bundle": "4.9.*",
"leycommediasolutions/contao-frontend-builder": "^1.0",
"markocupic/contao-bundle-creator-bundle": "^1.4"
},
"extra": {
"contao-component-dir": "assets"
},
"scripts": {
"post-install-cmd": [
"Contao\\ManagerBundle\\Composer\\ScriptHandler::initializeApplication"
],
"post-update-cmd": [
"Contao\\ManagerBundle\\Composer\\ScriptHandler::initializeApplication"
]
},
"autoload": {
"psr-4": { "AppBundle\\": "src/AppBundle/", "InhaltsBundle\\": "src/InhaltsBundle/", "AluMenuBundle\\": "src/AluMenuBundle/", "ToolsBundle\\": "src/ToolsBundle/" },
"classmap": ["app/ContaoManagerPlugin.php"]
}
}
In der ContaoManagerPlugin.php sind die 3 natürlich auch drinnen:
Code:
<?php
use Contao\ManagerPlugin\Routing\RoutingPluginInterface;
use Symfony\Component\Config\Loader\LoaderResolverInterface;
use Symfony\Component\HttpKernel\KernelInterface;
use Contao\CoreBundle\ContaoCoreBundle;
use Contao\ManagerPlugin\Bundle\BundlePluginInterface;
use Contao\ManagerPlugin\Bundle\Parser\ParserInterface;
use Contao\ManagerPlugin\Bundle\Config\BundleConfig;
class ContaoManagerPlugin implements BundlePluginInterface
{
/**
* {@inheritdoc}
*/
public function getBundles(ParserInterface $parser)
{
return [
BundleConfig::create(AppBundle\AppBundle::class)->setLoadAfter([ContaoCoreBundle::class]),
BundleConfig::create(InhaltsBundle\InhaltsBundle::class)->setLoadAfter([ContaoCoreBundle::class]),
BundleConfig::create(AluMenuBundle\AluMenuBundle::class)->setLoadAfter([ContaoCoreBundle::class]),
BundleConfig::create(ToolsBundle\ToolsBundle::class)->setLoadAfter([ContaoCoreBundle::class])
];
}
}
class Plugin implements RoutingPluginInterface
{
public function getRouteCollection(LoaderResolverInterface $resolver, KernelInterface $kernel)
{
$file = '@ToolsBundle/Resources/config/routes.yaml';
return $resolver->resolve($file)->load($file);
}
}