add dependencies
This commit is contained in:
@@ -13,9 +13,7 @@
|
||||
"require": {
|
||||
"php": "^7.2 || ^8.0",
|
||||
"contao/core-bundle": "^4.9",
|
||||
"symfony/config": "^4.4 || ^5.1",
|
||||
"symfony/dependency-injection": "^4.4 || ^5.1",
|
||||
"symfony/http-kernel": "^4.4 || ^5.1"
|
||||
"contao/news-bundle": "^4.9"
|
||||
},
|
||||
"conflict": {
|
||||
"contao/manager-plugin": "<2.0 || >=3.0"
|
||||
@@ -24,5 +22,8 @@
|
||||
"psr-4": {
|
||||
"Jr\\FalsBundle\\": "src/"
|
||||
}
|
||||
},
|
||||
"extra": {
|
||||
"contao-manager-plugin": "Jr\\FalsBundle\\ContaoManager\\Plugin"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -12,19 +12,22 @@ declare(strict_types=1);
|
||||
|
||||
namespace Jr\FalsBundle\ContaoManager;
|
||||
|
||||
use Jr\FalsBundle\JrFalsBundle;
|
||||
use Contao\CoreBundle\ContaoCoreBundle;
|
||||
use Contao\ManagerPlugin\Bundle\BundlePluginInterface;
|
||||
use Contao\ManagerPlugin\Bundle\Config\BundleConfig;
|
||||
use Contao\ManagerPlugin\Bundle\Parser\ParserInterface;
|
||||
use Jr\FalsBundle\JrFalsBundle;
|
||||
use Contao\NewsBundle\ContaoNewsBundle;
|
||||
|
||||
class Plugin implements BundlePluginInterface
|
||||
{
|
||||
public function getBundles(ParserInterface $parser)
|
||||
{
|
||||
return [
|
||||
BundleConfig::create(JrFalsBundle::class)
|
||||
->setLoadAfter([ContaoCoreBundle::class]),
|
||||
BundleConfig::create(JrFalsBundle::class)->setLoadAfter([
|
||||
ContaoCoreBundle::class,
|
||||
ContaoNewsBundle::class
|
||||
]),
|
||||
];
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,31 +0,0 @@
|
||||
<?php
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
/*
|
||||
* This file is part of [package name].
|
||||
*
|
||||
* (c) John Doe
|
||||
*
|
||||
* @license LGPL-3.0-or-later
|
||||
*/
|
||||
|
||||
namespace Jr\FalsBundle\DependencyInjection;
|
||||
|
||||
use Symfony\Component\Config\FileLocator;
|
||||
use Symfony\Component\DependencyInjection\ContainerBuilder;
|
||||
use Symfony\Component\DependencyInjection\Extension\Extension;
|
||||
use Symfony\Component\DependencyInjection\Loader\YamlFileLoader;
|
||||
|
||||
class JrFalsExtension extends Extension
|
||||
{
|
||||
public function load(array $mergedConfig, ContainerBuilder $container): void
|
||||
{
|
||||
$loader = new YamlFileLoader(
|
||||
$container,
|
||||
new FileLocator(__DIR__.'/../Resources/config')
|
||||
);
|
||||
|
||||
$loader->load('services.yml');
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user