Permalink
Browse files

Merge pull request #733 from Pierstoval/patch-1

Fix var typo in DoctrineExtension
2 parents 8b462d9 + b85e866 commit 81250e3189d2962ac3a0d941e8a3322636ff9634 @fabpot fabpot committed Nov 18, 2017
Showing with 6 additions and 6 deletions.
  1. +6 −6 DependencyInjection/DoctrineExtension.php
@@ -141,22 +141,22 @@ protected function dbalLoad(array $config, ContainerBuilder $container)
protected function loadDbalConnection($name, array $connection, ContainerBuilder $container)
{
// configuration
- $defitionClassname = $this->getDefinitionClassname();
+ $definitionClassname = $this->getDefinitionClassname();
- $configuration = $container->setDefinition(sprintf('doctrine.dbal.%s_connection.configuration', $name), new $defitionClassname('doctrine.dbal.connection.configuration'));
+ $configuration = $container->setDefinition(sprintf('doctrine.dbal.%s_connection.configuration', $name), new $definitionClassname('doctrine.dbal.connection.configuration'));
$logger = null;
if ($connection['logging']) {
$logger = new Reference('doctrine.dbal.logger');
}
unset ($connection['logging']);
if ($connection['profiling']) {
$profilingLoggerId = 'doctrine.dbal.logger.profiling.'.$name;
- $container->setDefinition($profilingLoggerId, new $defitionClassname('doctrine.dbal.logger.profiling'));
+ $container->setDefinition($profilingLoggerId, new $definitionClassname('doctrine.dbal.logger.profiling'));
$profilingLogger = new Reference($profilingLoggerId);
$container->getDefinition('data_collector.doctrine')->addMethodCall('addLogger', array($name, $profilingLogger));
if (null !== $logger) {
- $chainLogger = new $defitionClassname('doctrine.dbal.logger.chain');
+ $chainLogger = new $definitionClassname('doctrine.dbal.logger.chain');
$chainLogger->addMethodCall('addLogger', array($profilingLogger));
$loggerId = 'doctrine.dbal.logger.chain.'.$name;
@@ -185,13 +185,13 @@ protected function loadDbalConnection($name, array $connection, ContainerBuilder
}
// event manager
- $container->setDefinition(sprintf('doctrine.dbal.%s_connection.event_manager', $name), new $defitionClassname('doctrine.dbal.connection.event_manager'));
+ $container->setDefinition(sprintf('doctrine.dbal.%s_connection.event_manager', $name), new $definitionClassname('doctrine.dbal.connection.event_manager'));
// connection
$options = $this->getConnectionOptions($connection);
$def = $container
- ->setDefinition(sprintf('doctrine.dbal.%s_connection', $name), new $defitionClassname('doctrine.dbal.connection'))
+ ->setDefinition(sprintf('doctrine.dbal.%s_connection', $name), new $definitionClassname('doctrine.dbal.connection'))
->setPublic(true)
->setArguments(array(
$options,

0 comments on commit 81250e3

Please sign in to comment.