Commit 5fdbaf7f authored by Fabien Potencier's avatar Fabien Potencier

made values for register() optional

parent 6bc5e0c7
...@@ -78,7 +78,7 @@ class Application extends \Pimple implements HttpKernelInterface, EventSubscribe ...@@ -78,7 +78,7 @@ class Application extends \Pimple implements HttpKernelInterface, EventSubscribe
}); });
} }
public function register(ExtensionInterface $extension, array $values) public function register(ExtensionInterface $extension, array $values = array())
{ {
foreach ($values as $key => $value) { foreach ($values as $key => $value) {
$this[$key] = $value; $this[$key] = $value;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment