Rapsys Git
/
packbundle
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Remove container interface deps
[packbundle]
/
DependencyInjection
/
RapsysPackExtension.php
diff --git
a/DependencyInjection/RapsysPackExtension.php
b/DependencyInjection/RapsysPackExtension.php
index 97bb11f3b23c0200688e169dda382edc6cfa7a0f..7d660000e870b6679c0c9658c5cd714f87bcd336 100644
(file)
--- a/
DependencyInjection/RapsysPackExtension.php
+++ b/
DependencyInjection/RapsysPackExtension.php
@@
-24,6
+24,11
@@
class RapsysPackExtension extends Extension {
//Load configuration
$configuration = $this->getConfiguration($configs, $container);
$config = $this->processConfiguration($configuration, $configs);
//Load configuration
$configuration = $this->getConfiguration($configs, $container);
$config = $this->processConfiguration($configuration, $configs);
+
+ //Set default config in parameter
+ if (!$container->hasParameter($alias = $this->getAlias())) {
+ $container->setParameter($alias, $config[$alias]);
+ }
}
/**
}
/**
@@
-33,4
+38,11
@@
class RapsysPackExtension extends Extension {
//Get configuration instance with resolved web path
return new Configuration($container->getParameter('kernel.project_dir').'/web/');
}
//Get configuration instance with resolved web path
return new Configuration($container->getParameter('kernel.project_dir').'/web/');
}
+
+ /**
+ * {@inheritdoc}
+ */
+ public function getAlias() {
+ return 'rapsys_pack';
+ }
}
}