Skip to content

Commit

Permalink
Catch missing parameter exceptions thrown by containers
Browse files Browse the repository at this point in the history
  • Loading branch information
steves committed Mar 7, 2012
1 parent c8b0e88 commit 0102256
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Twig/Extension/RuntimeConfigExtension.php
Original file line number Diff line number Diff line change
Expand Up @@ -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 0102256

Please sign in to comment.