Skip to content

Commit

Permalink
removed superfluous check
Browse files Browse the repository at this point in the history
  • Loading branch information
wimvds committed Nov 6, 2013
1 parent 21f86da commit e2e91ef
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion DependencyInjection/KunstmaanSentryExtension.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ public function load(array $configs, ContainerBuilder $container)
$container->setParameter($this->getAlias(). '.dsn', $config['dsn']);

if ($this->isConfigEnabled($container, $config)) {
if (!array_key_exists('dsn', $config) || empty($config['dsn'])) {
if (empty($config['dsn'])) {
throw new InvalidArgumentException("The kunstmaan_sentry config array 'dsn' key is required.");
}
$loader = new Loader\XmlFileLoader($container, new FileLocator(__DIR__.'/../Resources/config'));
Expand Down

0 comments on commit e2e91ef

Please sign in to comment.