Loading src/RequireOnce.php +9 −1 Original line number Diff line number Diff line Loading @@ -16,6 +16,14 @@ class RequireOnce { use StringTranslationTrait; /** * The dummy constructor. * * All we need from this service class is the helper function below. */ public function __construct() { } /** * The helper function for Ludwig integration. * Loading @@ -26,7 +34,7 @@ class RequireOnce { * @param string $dir_name * The caller module directory name. */ public function __construct($package_name, $file_to_require, $dir_name) { public function requireOnce($package_name, $file_to_require, $dir_name) { $ludwig_json = $dir_name . '/ludwig.json'; if (file_exists($ludwig_json)) { $packages = file_get_contents($ludwig_json); Loading Loading
src/RequireOnce.php +9 −1 Original line number Diff line number Diff line Loading @@ -16,6 +16,14 @@ class RequireOnce { use StringTranslationTrait; /** * The dummy constructor. * * All we need from this service class is the helper function below. */ public function __construct() { } /** * The helper function for Ludwig integration. * Loading @@ -26,7 +34,7 @@ class RequireOnce { * @param string $dir_name * The caller module directory name. */ public function __construct($package_name, $file_to_require, $dir_name) { public function requireOnce($package_name, $file_to_require, $dir_name) { $ludwig_json = $dir_name . '/ludwig.json'; if (file_exists($ludwig_json)) { $packages = file_get_contents($ludwig_json); Loading