mirror of
https://github.com/wallabag/wallabag.git
synced 2024-11-22 09:01:01 +00:00
Move to bundle-less
This commit is contained in:
parent
09ef700fda
commit
fe039247b5
6 changed files with 8 additions and 45 deletions
|
@ -35,9 +35,6 @@ class AppKernel extends Kernel
|
||||||
new Http\HttplugBundle\HttplugBundle(),
|
new Http\HttplugBundle\HttplugBundle(),
|
||||||
new Sentry\SentryBundle\SentryBundle(),
|
new Sentry\SentryBundle\SentryBundle(),
|
||||||
new Twig\Extra\TwigExtraBundle\TwigExtraBundle(),
|
new Twig\Extra\TwigExtraBundle\TwigExtraBundle(),
|
||||||
|
|
||||||
// wallabag bundles
|
|
||||||
new Wallabag\CoreBundle\WallabagCoreBundle(),
|
|
||||||
];
|
];
|
||||||
|
|
||||||
if (in_array($this->getEnvironment(), ['dev', 'test'], true)) {
|
if (in_array($this->getEnvironment(), ['dev', 'test'], true)) {
|
||||||
|
|
|
@ -68,6 +68,13 @@ doctrine:
|
||||||
entity_managers:
|
entity_managers:
|
||||||
default:
|
default:
|
||||||
auto_mapping: true
|
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:
|
stof_doctrine_extensions:
|
||||||
default_locale: "%locale%"
|
default_locale: "%locale%"
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
app:
|
app:
|
||||||
resource: "@WallabagCoreBundle/Controller/"
|
resource: ../../src/Controller/
|
||||||
type: annotation
|
type: annotation
|
||||||
|
|
||||||
doc-api:
|
doc-api:
|
||||||
|
|
|
@ -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');
|
|
||||||
}
|
|
||||||
}
|
|
|
@ -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';
|
|
||||||
}
|
|
||||||
}
|
|
|
@ -1,9 +0,0 @@
|
||||||
<?php
|
|
||||||
|
|
||||||
namespace Wallabag\CoreBundle;
|
|
||||||
|
|
||||||
use Symfony\Component\HttpKernel\Bundle\Bundle;
|
|
||||||
|
|
||||||
class WallabagCoreBundle extends Bundle
|
|
||||||
{
|
|
||||||
}
|
|
Loading…
Reference in a new issue