Permalink
Browse files

Merge pull request #5 from opensky/feature/capture-exceptions

Catch missing parameter exceptions thrown by containers
  • Loading branch information...
2 parents c8b0e88 + 0102256 commit ed904d14823faee559024aef6a5990961d505893 @kriswallsmith kriswallsmith committed Mar 9, 2012
Showing with 2 additions and 0 deletions.
  1. +2 −0 Twig/Extension/RuntimeConfigExtension.php
@@ -47,6 +47,8 @@ public function getRuntimeConfig($name)
return $this->runtimeConfig->get($name);
} catch (ParameterNotFoundException $e) {
return null;
+ } catch (\InvalidArgumentException $e) {
+ return null;
}
}
}

0 comments on commit ed904d1

Please sign in to comment.