From a296d4032dabd65a02f00260b8bdb809b2e4b94d Mon Sep 17 00:00:00 2001 From: Greg Bowler Date: Mon, 27 Apr 2015 16:24:36 +0100 Subject: [PATCH] Fix typo --- src/Logic/LogicFactory.php | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/Logic/LogicFactory.php b/src/Logic/LogicFactory.php index c018bd36..dc688621 100644 --- a/src/Logic/LogicFactory.php +++ b/src/Logic/LogicFactory.php @@ -63,6 +63,7 @@ public static function create($appNamespace, $uri, $api, */ public static function getLogicFileArray($filename, $path, $topPath) { // Get PageLogic path for current URI. + $filename = str_replace("-", "_", $filename); $currentPageLogicPath = implode("/", [$path, $filename]) . ".php"; $commonPageLogicPathArray = []; @@ -103,9 +104,10 @@ public static function getLogicClassNameArray($appNamespace, $logicPathArray) { $srcPath = Path::get(Path::SRC); foreach ($logicPathArray as $logicPath) { - // Begin creating a string contining the fully-qualified class name. + // Begin creating a string containing the fully-qualified class name. $namespaceStr = substr($logicPath, strlen($srcPath) + 1); $namespaceStr = strtok($namespaceStr, "."); + $namespaceStr = str_replace("-", "_", $namespaceStr); // Explode the string into an array .. $namespaceArray = explode("/", $namespaceStr); // .. and add the App's namespace to the beginning of the array. @@ -118,4 +120,4 @@ public static function getLogicClassNameArray($appNamespace, $logicPathArray) { return $classNameArray; } -}# \ No newline at end of file +}#