Skip to content

Commit

Permalink
Merge pull request #17 from jhedstrom/fix-core-constructor
Browse files Browse the repository at this point in the history
Fixes issue #15.

Signed-off-by: Jonathan Hedstrom <[email protected]>
  • Loading branch information
jhedstrom committed Feb 25, 2015
1 parent 51685a4 commit bcbd546
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/Drupal/Driver/Cores/Drupal7.php
Original file line number Diff line number Diff line change
Expand Up @@ -34,9 +34,12 @@ class Drupal7 extends AbstractCore {
/**
* {@inheritDoc}
*/
public function __construct($drupalRoot, $uri = 'default', Random $random) {
public function __construct($drupalRoot, $uri = 'default', Random $random = NULL) {
$this->drupalRoot = realpath($drupalRoot);
$this->uri = $uri;
if (!isset($random)) {
$random = new Random();
}
$this->random = $random;
}

Expand Down

0 comments on commit bcbd546

Please sign in to comment.