From 5f2ff8992ad9dde275bbf51712ab1daeeffd8599 Mon Sep 17 00:00:00 2001 From: webeweb Date: Wed, 6 Nov 2019 18:28:52 +0100 Subject: [PATCH] Update Request normalizer: - replace ObjectHelper::getDirectory() by __DIR__ constant --- src/Normalizer/RequestNormalizer.php | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/Normalizer/RequestNormalizer.php b/src/Normalizer/RequestNormalizer.php index c73a270..1a6f5b2 100644 --- a/src/Normalizer/RequestNormalizer.php +++ b/src/Normalizer/RequestNormalizer.php @@ -15,7 +15,6 @@ use InvalidArgumentException; use Symfony\Component\Yaml\Yaml; use WBW\Library\Core\Argument\ArrayHelper; -use WBW\Library\Core\Argument\ObjectHelper; use WBW\Library\SMSMode\API\RequestInterface; /** @@ -38,9 +37,8 @@ class RequestNormalizer { */ public function __construct() { - $directory = ObjectHelper::getDirectory($this); - $filename = $directory . "/../Resources/config/request-normalizer.yml"; - $content = file_get_contents(realpath($filename)); + $filename = __DIR__ . "/../Resources/config/request-normalizer.yml"; + $content = file_get_contents(realpath($filename)); $this->setConfiguration(Yaml::parse($content)); }