rename AppBundle to CoreBundle
This commit is contained in:
parent
1a41973031
commit
c591b2fd22
|
@ -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],
|
||||
];
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
app:
|
||||
core:
|
||||
site:
|
||||
pages:
|
||||
App\Entity\Page\SimplePage:
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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();
|
||||
}
|
||||
}
|
||||
|
|
|
@ -9,7 +9,7 @@ class Configuration implements ConfigurationInterface
|
|||
{
|
||||
public function getConfigTreeBuilder(): TreeBuilder
|
||||
{
|
||||
$treeBuilder = new TreeBuilder('app');
|
||||
$treeBuilder = new TreeBuilder('core');
|
||||
|
||||
$treeBuilder->getRootNode()
|
||||
->children()
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
|
||||
/**
|
Loading…
Reference in a new issue