Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Introduce DI container #79

Merged
merged 9 commits into from
Apr 15, 2018
Prev Previous commit
Next Next commit
CRUNZ_ROOT must be resolved in runtime, remove it from container.
PabloKowalczyk committed Apr 15, 2018
commit c12d13beb1cc7af88206653e45fe16e283ba77f2
1 change: 0 additions & 1 deletion src/Console/CommandKernel.php
Original file line number Diff line number Diff line change
@@ -104,7 +104,6 @@ private function initializeContainer()
private function buildContainer()
{
$containerBuilder = new ContainerBuilder();
$containerBuilder->setParameter('crunz.root_dir', CRUNZ_ROOT);

$loader = new XmlFileLoader($containerBuilder, new FileLocator(CRUNZ_ROOT . '/config'));
$loader->load('services.xml');