Skip to content

Commit

Permalink
Driver path is now not relative anymore
Browse files Browse the repository at this point in the history
  • Loading branch information
rumd3x authored Dec 19, 2018
1 parent b36b3ad commit 09beecb
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions src/Engine.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,15 @@ class Engine
* @var FileHandler
*/
private $driver;


/**
* Driver should be the full path + file name without extension.
*
* @param string $driver
*/
public function __construct(String $driver)
{
$this->driver = __DIR__ . '/' . $driver;
$this->driver = $driver;
$this->handler = new FileHandler(new File("{$this->driver}.pe"));
}

Expand Down

0 comments on commit 09beecb

Please sign in to comment.