rename AppBundle to CoreBundle

This commit is contained in:
Simon Vieille 2021-03-23 21:53:34 +01:00
parent 1a41973031
commit c591b2fd22
6 changed files with 10 additions and 8 deletions

View file

@ -17,5 +17,5 @@ return [
Symfony\Bundle\SwiftmailerBundle\SwiftmailerBundle::class => ['all' => true],
Scheb\TwoFactorBundle\SchebTwoFactorBundle::class => ['all' => true],
Stof\DoctrineExtensionsBundle\StofDoctrineExtensionsBundle::class => ['all' => true],
App\Core\Bundle\AppBundle::class => ['all' => true],
App\Core\Bundle\CoreBundle::class => ['all' => true],
];

View file

@ -1,4 +1,4 @@
app:
core:
site:
pages:
App\Entity\Page\SimplePage:

View file

@ -1,3 +1,5 @@
twig:
default_path: '%kernel.project_dir%/templates'
form_themes: ['site/form/bootstrap_4_form_theme.html.twig']
form_themes: ['@Core/form/bootstrap_4_form_theme.html.twig']
paths:
'%kernel.project_dir%/core/Resources/views/': Core

View file

@ -11,13 +11,13 @@
namespace App\Core\Bundle;
use App\Core\DependencyInjection\AppExtension;
use App\Core\DependencyInjection\CoreExtension;
use Symfony\Component\HttpKernel\Bundle\Bundle;
class CoreBundle extends Bundle
{
public function getContainerExtension()
{
return new AppExtension();
return new CoreExtension();
}
}

View file

@ -9,7 +9,7 @@ class Configuration implements ConfigurationInterface
{
public function getConfigTreeBuilder(): TreeBuilder
{
$treeBuilder = new TreeBuilder('app');
$treeBuilder = new TreeBuilder('core');
$treeBuilder->getRootNode()
->children()

View file

@ -5,7 +5,7 @@ namespace App\Core\DependencyInjection;
use Symfony\Component\DependencyInjection\ContainerBuilder;
use Symfony\Component\DependencyInjection\Extension\Extension;
class AppExtension extends Extension
class CoreExtension extends Extension
{
/**
* {@inheritdoc}
@ -15,7 +15,7 @@ class AppExtension extends Extension
$configuration = $this->getConfiguration($configs, $container);
$config = $this->processConfiguration($configuration, $configs);
$container->setParameter('app', $config);
$container->setParameter('core', $config);
}
/**