From 09beecb03e530edb1650e61d4448e707b637762b Mon Sep 17 00:00:00 2001 From: Edmur Cardoso Date: Wed, 19 Dec 2018 00:11:35 -0200 Subject: [PATCH] Driver path is now not relative anymore --- src/Engine.php | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/src/Engine.php b/src/Engine.php index a3235f9..3fdf599 100644 --- a/src/Engine.php +++ b/src/Engine.php @@ -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")); }