Move to bundle-less

This commit is contained in:
Yassine Guedidi 2024-02-19 01:03:08 +01:00
parent 09ef700fda
commit fe039247b5
6 changed files with 8 additions and 45 deletions

View file

@ -35,9 +35,6 @@ class AppKernel extends Kernel
new Http\HttplugBundle\HttplugBundle(),
new Sentry\SentryBundle\SentryBundle(),
new Twig\Extra\TwigExtraBundle\TwigExtraBundle(),
// wallabag bundles
new Wallabag\CoreBundle\WallabagCoreBundle(),
];
if (in_array($this->getEnvironment(), ['dev', 'test'], true)) {

View file

@ -68,6 +68,13 @@ doctrine:
entity_managers:
default:
auto_mapping: true
mappings:
Wallabag:
type: annotation
is_bundle: false
dir: '%kernel.project_dir%/src/Entity'
prefix: 'Wallabag\CoreBundle\Entity'
alias: Wallabag
stof_doctrine_extensions:
default_locale: "%locale%"

View file

@ -1,5 +1,5 @@
app:
resource: "@WallabagCoreBundle/Controller/"
resource: ../../src/Controller/
type: annotation
doc-api:

View file

@ -1,14 +0,0 @@
<?php
namespace Wallabag\CoreBundle\DependencyInjection;
use Symfony\Component\Config\Definition\Builder\TreeBuilder;
use Symfony\Component\Config\Definition\ConfigurationInterface;
class Configuration implements ConfigurationInterface
{
public function getConfigTreeBuilder()
{
return new TreeBuilder('wallabag_core');
}
}

View file

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

View file

@ -1,9 +0,0 @@
<?php
namespace Wallabag\CoreBundle;
use Symfony\Component\HttpKernel\Bundle\Bundle;
class WallabagCoreBundle extends Bundle
{
}