src/SWP/Bundle/AnalyticsBundle/DependencyInjection/SWPAnalyticsExtension.php 1 location
|
@@ 28-43 (lines=16) @@
|
| 25 |
|
* |
| 26 |
|
* To learn more see {@link http://symfony.com/doc/current/cookbook/bundles/extension.html} |
| 27 |
|
*/ |
| 28 |
|
class SWPAnalyticsExtension extends Extension |
| 29 |
|
{ |
| 30 |
|
/** |
| 31 |
|
* {@inheritdoc} |
| 32 |
|
*/ |
| 33 |
|
public function load(array $configs, ContainerBuilder $container) |
| 34 |
|
{ |
| 35 |
|
$config = $this->processConfiguration(new Configuration(), $configs); |
| 36 |
|
$loader = new Loader\YamlFileLoader($container, new FileLocator(__DIR__.'/../Resources/config')); |
| 37 |
|
$loader->load('services.yml'); |
| 38 |
|
|
| 39 |
|
if ($config['persistence']['orm']['enabled']) { |
| 40 |
|
$this->registerStorage(Drivers::DRIVER_DOCTRINE_ORM, $config['persistence']['orm']['classes'], $container); |
| 41 |
|
} |
| 42 |
|
} |
| 43 |
|
} |
| 44 |
|
|
src/SWP/Bundle/ContentListBundle/DependencyInjection/SWPContentListExtension.php 1 location
|
@@ 25-41 (lines=17) @@
|
| 22 |
|
use Symfony\Component\DependencyInjection\ContainerBuilder; |
| 23 |
|
use Symfony\Component\DependencyInjection\Loader; |
| 24 |
|
|
| 25 |
|
class SWPContentListExtension extends Extension |
| 26 |
|
{ |
| 27 |
|
/** |
| 28 |
|
* {@inheritdoc} |
| 29 |
|
*/ |
| 30 |
|
public function load(array $configs, ContainerBuilder $container) |
| 31 |
|
{ |
| 32 |
|
$config = $this->processConfiguration(new Configuration(), $configs); |
| 33 |
|
$loader = new Loader\YamlFileLoader($container, new FileLocator(__DIR__.'/../Resources/config')); |
| 34 |
|
|
| 35 |
|
if ($config['persistence']['orm']['enabled']) { |
| 36 |
|
$this->registerStorage(Drivers::DRIVER_DOCTRINE_ORM, $config['persistence']['orm']['classes'], $container); |
| 37 |
|
} |
| 38 |
|
|
| 39 |
|
$loader->load('services.yml'); |
| 40 |
|
} |
| 41 |
|
} |
| 42 |
|
|
src/SWP/Bundle/FacebookInstantArticlesBundle/DependencyInjection/SWPFacebookInstantArticlesExtension.php 1 location
|
@@ 30-47 (lines=18) @@
|
| 27 |
|
* |
| 28 |
|
* @see http://symfony.com/doc/current/cookbook/bundles/extension.html |
| 29 |
|
*/ |
| 30 |
|
class SWPFacebookInstantArticlesExtension extends Extension |
| 31 |
|
{ |
| 32 |
|
/** |
| 33 |
|
* {@inheritdoc} |
| 34 |
|
*/ |
| 35 |
|
public function load(array $configs, ContainerBuilder $container) |
| 36 |
|
{ |
| 37 |
|
$configuration = new Configuration(); |
| 38 |
|
$config = $this->processConfiguration($configuration, $configs); |
| 39 |
|
|
| 40 |
|
$loader = new Loader\YamlFileLoader($container, new FileLocator(__DIR__.'/../Resources/config')); |
| 41 |
|
$loader->load('services.yml'); |
| 42 |
|
|
| 43 |
|
if ($config['persistence']['orm']['enabled']) { |
| 44 |
|
$this->registerStorage(Drivers::DRIVER_DOCTRINE_ORM, $config['persistence']['orm']['classes'], $container); |
| 45 |
|
} |
| 46 |
|
} |
| 47 |
|
} |
| 48 |
|
|
src/SWP/Bundle/MenuBundle/DependencyInjection/SWPMenuExtension.php 1 location
|
@@ 25-40 (lines=16) @@
|
| 22 |
|
use Symfony\Component\Config\FileLocator; |
| 23 |
|
use Symfony\Component\DependencyInjection\Loader; |
| 24 |
|
|
| 25 |
|
class SWPMenuExtension extends Extension |
| 26 |
|
{ |
| 27 |
|
/** |
| 28 |
|
* {@inheritdoc} |
| 29 |
|
*/ |
| 30 |
|
public function load(array $configs, ContainerBuilder $container) |
| 31 |
|
{ |
| 32 |
|
$config = $this->processConfiguration(new Configuration(), $configs); |
| 33 |
|
$loader = new Loader\YamlFileLoader($container, new FileLocator(__DIR__.'/../Resources/config')); |
| 34 |
|
|
| 35 |
|
if ($config['persistence']['orm']['enabled']) { |
| 36 |
|
$this->registerStorage(Drivers::DRIVER_DOCTRINE_ORM, $config['persistence']['orm']['classes'], $container); |
| 37 |
|
$loader->load('services.yml'); |
| 38 |
|
} |
| 39 |
|
} |
| 40 |
|
} |
| 41 |
|
|
src/SWP/Bundle/RedirectRouteBundle/DependencyInjection/SWPRedirectRouteExtension.php 1 location
|
@@ 25-38 (lines=14) @@
|
| 22 |
|
use Symfony\Component\DependencyInjection\ContainerBuilder; |
| 23 |
|
use Symfony\Component\DependencyInjection\Loader\YamlFileLoader; |
| 24 |
|
|
| 25 |
|
class SWPRedirectRouteExtension extends Extension |
| 26 |
|
{ |
| 27 |
|
public function load(array $configs, ContainerBuilder $container): void |
| 28 |
|
{ |
| 29 |
|
$loader = new YamlFileLoader($container, new FileLocator(__DIR__.'/../Resources/config')); |
| 30 |
|
$loader->load('services.yaml'); |
| 31 |
|
|
| 32 |
|
$config = $this->processConfiguration(new Configuration(), $configs); |
| 33 |
|
|
| 34 |
|
if ($config['persistence']['orm']['enabled']) { |
| 35 |
|
$this->registerStorage(Drivers::DRIVER_DOCTRINE_ORM, $config['persistence']['orm']['classes'], $container); |
| 36 |
|
} |
| 37 |
|
} |
| 38 |
|
} |
| 39 |
|
|
src/SWP/Bundle/RuleBundle/DependencyInjection/SWPRuleExtension.php 1 location
|
@@ 23-38 (lines=16) @@
|
| 20 |
|
use Symfony\Component\Config\FileLocator; |
| 21 |
|
use Symfony\Component\DependencyInjection\Loader; |
| 22 |
|
|
| 23 |
|
class SWPRuleExtension extends Extension |
| 24 |
|
{ |
| 25 |
|
/** |
| 26 |
|
* {@inheritdoc} |
| 27 |
|
*/ |
| 28 |
|
public function load(array $configs, ContainerBuilder $container) |
| 29 |
|
{ |
| 30 |
|
$config = $this->processConfiguration(new Configuration(), $configs); |
| 31 |
|
$loader = new Loader\YamlFileLoader($container, new FileLocator(__DIR__.'/../Resources/config')); |
| 32 |
|
$loader->load('services.yml'); |
| 33 |
|
|
| 34 |
|
if ($config['persistence']['orm']['enabled']) { |
| 35 |
|
$this->registerStorage(Drivers::DRIVER_DOCTRINE_ORM, $config['persistence']['orm']['classes'], $container); |
| 36 |
|
} |
| 37 |
|
} |
| 38 |
|
} |
| 39 |
|
|
src/SWP/Bundle/SeoBundle/DependencyInjection/SWPSeoExtension.php 1 location
|
@@ 25-37 (lines=13) @@
|
| 22 |
|
use Symfony\Component\DependencyInjection\ContainerBuilder; |
| 23 |
|
use Symfony\Component\DependencyInjection\Loader; |
| 24 |
|
|
| 25 |
|
class SWPSeoExtension extends Extension |
| 26 |
|
{ |
| 27 |
|
public function load(array $configs, ContainerBuilder $container): void |
| 28 |
|
{ |
| 29 |
|
$config = $this->processConfiguration(new Configuration(), $configs); |
| 30 |
|
$loader = new Loader\YamlFileLoader($container, new FileLocator(__DIR__.'/../Resources/config')); |
| 31 |
|
$loader->load('services.yaml'); |
| 32 |
|
|
| 33 |
|
if ($config['persistence']['orm']['enabled']) { |
| 34 |
|
$this->registerStorage(Drivers::DRIVER_DOCTRINE_ORM, $config['persistence']['orm']['classes'], $container); |
| 35 |
|
} |
| 36 |
|
} |
| 37 |
|
} |
| 38 |
|
|
src/SWP/Bundle/UserBundle/DependencyInjection/SWPUserExtension.php 1 location
|
@@ 30-46 (lines=17) @@
|
| 27 |
|
* |
| 28 |
|
* To learn more see {@link http://symfony.com/doc/current/cookbook/bundles/extension.html} |
| 29 |
|
*/ |
| 30 |
|
class SWPUserExtension extends Extension |
| 31 |
|
{ |
| 32 |
|
/** |
| 33 |
|
* {@inheritdoc} |
| 34 |
|
*/ |
| 35 |
|
public function load(array $configs, ContainerBuilder $container) |
| 36 |
|
{ |
| 37 |
|
$config = $this->processConfiguration(new Configuration(), $configs); |
| 38 |
|
$loader = new Loader\YamlFileLoader($container, new FileLocator(__DIR__.'/../Resources/config')); |
| 39 |
|
$loader->load('services.yml'); |
| 40 |
|
$loader->load('controllers.yml'); |
| 41 |
|
|
| 42 |
|
if ($config['persistence']['orm']['enabled']) { |
| 43 |
|
$this->registerStorage(Drivers::DRIVER_DOCTRINE_ORM, $config['persistence']['orm']['classes'], $container); |
| 44 |
|
} |
| 45 |
|
} |
| 46 |
|
} |
| 47 |
|
|