Die hab ich eigentlich
PHP-Code:
class Plugin implements BundlePluginInterface, ExtensionPluginInterface
{
public function getBundles(ParserInterface $parser)
{
return [
BundleConfig::create(BaurImmoBundle::class)
->setLoadAfter([ContaoCoreBundle::class]),
BundleConfig::create(MakerBundle::class)
->setLoadInDevelopment(true)
->setLoadInProduction(false),
BundleConfig::create(GregwarCaptchaBundle::class)
->setLoadAfter([ContaoCoreBundle::class])
];
}
/**
* Allows a plugin to override extension configuration.
*
* @param string $extensionName
*
* @return array
*/
public function getExtensionConfig($extensionName, array $extensionConfigs, ContainerBuilder $container)
{
if ('monolog' !== $extensionName) {
return $extensionConfigs;
}
foreach ($extensionConfigs as &$extensionConfig) {
// Add your custom "importer" channel
if (isset($extensionConfig['channels'])) {
$extensionConfig['channels'][] = 'importer';
} else {
$extensionConfig['channels'] = ['importer'];
}
if (isset($extensionConfig['handlers'])) {
// Add your own handler before the "contao" handler
$offset = (int) array_search('contao', array_keys($extensionConfig['handlers']), true);
$extensionConfig['handlers'] = array_merge(
\array_slice($extensionConfig['handlers'], 0, $offset, true),
[
'api' => [
'type' => 'rotating_file',
'max_files' => 10,
'path' => '%kernel.logs_dir%/%kernel.environment%_importer.log',
'level' => 'info',
'channels' => ['importer'],
],
],
\array_slice($extensionConfig['handlers'], $offset, null, true)
);
}
}
return $extensionConfigs;
}
}
Und dort versuche ich eben die "Aktivierung" bereits, bisher ohne Erfolg.