Remove ImportBundle

This commit is contained in:
Yassine Guedidi 2024-01-01 17:05:20 +01:00
parent 6552c84eec
commit 2c65169127
5 changed files with 8 additions and 52 deletions

View file

@ -38,7 +38,6 @@ class AppKernel extends Kernel
// wallabag bundles
new Wallabag\CoreBundle\WallabagCoreBundle(),
new Wallabag\ImportBundle\WallabagImportBundle(),
];
if (in_array($this->getEnvironment(), ['dev', 'test'], true)) {

View file

@ -2,8 +2,16 @@
namespace Wallabag\CoreBundle;
use Symfony\Component\DependencyInjection\ContainerBuilder;
use Symfony\Component\HttpKernel\Bundle\Bundle;
use Wallabag\CoreBundle\Import\ImportCompilerPass;
class WallabagCoreBundle extends Bundle
{
public function build(ContainerBuilder $container)
{
parent::build($container);
$container->addCompilerPass(new ImportCompilerPass());
}
}

View file

@ -1,16 +0,0 @@
<?php
namespace Wallabag\ImportBundle\DependencyInjection;
use Symfony\Component\Config\Definition\Builder\TreeBuilder;
use Symfony\Component\Config\Definition\ConfigurationInterface;
class Configuration implements ConfigurationInterface
{
public function getConfigTreeBuilder()
{
$treeBuilder = new TreeBuilder('wallabag_import');
return $treeBuilder;
}
}

View file

@ -1,18 +0,0 @@
<?php
namespace Wallabag\ImportBundle\DependencyInjection;
use Symfony\Component\DependencyInjection\ContainerBuilder;
use Symfony\Component\HttpKernel\DependencyInjection\Extension;
class WallabagImportExtension extends Extension
{
public function load(array $configs, ContainerBuilder $container)
{
}
public function getAlias()
{
return 'wallabag_import';
}
}

View file

@ -1,17 +0,0 @@
<?php
namespace Wallabag\ImportBundle;
use Symfony\Component\DependencyInjection\ContainerBuilder;
use Symfony\Component\HttpKernel\Bundle\Bundle;
use Wallabag\CoreBundle\Import\ImportCompilerPass;
class WallabagImportBundle extends Bundle
{
public function build(ContainerBuilder $container)
{
parent::build($container);
$container->addCompilerPass(new ImportCompilerPass());
}
}