Quellcode durchsuchen

Classe d'injection de dépendance pour la configuration d'EasyAdmin (App / LcShopBundle)

reduction
Guillaume vor 4 Jahren
Ursprung
Commit
7370fd42ff
2 geänderte Dateien mit 29 neuen und 1 gelöschten Zeilen
  1. +24
    -0
      ShopBundle/DependencyInjection/LcShopExtension.php
  2. +5
    -1
      ShopBundle/LcShopBundle.php

+ 24
- 0
ShopBundle/DependencyInjection/LcShopExtension.php Datei anzeigen

@@ -0,0 +1,24 @@
<?php

namespace Lc\ShopBundle\DependencyInjection;

use Symfony\Component\Config\FileLocator;
use Symfony\Component\DependencyInjection\ContainerBuilder;
use Symfony\Component\DependencyInjection\Extension\Extension;
use Symfony\Component\DependencyInjection\Extension\PrependExtensionInterface;
use Symfony\Component\DependencyInjection\Loader\YamlFileLoader;

class LcShopExtension extends Extension implements PrependExtensionInterface
{
public function load(array $configs, ContainerBuilder $container)
{

}

public function prepend(ContainerBuilder $container)
{
/*$loader = new YamlFileLoader($container, new FileLocator(__DIR__.'/../Resources/config/easy_admin'));
$loader->load('base.yaml');
$loader->load('entities/merchant.yaml');*/
}
}

+ 5
- 1
ShopBundle/LcShopBundle.php Datei anzeigen

@@ -2,9 +2,13 @@

namespace Lc\ShopBundle;

use Lc\ShopBundle\DependencyInjection\LcShopExtension;
use Symfony\Component\HttpKernel\Bundle\Bundle;

class LcShopBundle extends Bundle
{

public function getContainerExtension()
{
return new LcShopExtension();
}
}

Laden…
Abbrechen
Speichern