@@ -62,7 +62,7 @@ discard block |
||
| 62 | 62 | * |
| 63 | 63 | * @param callable $class class name as defined by PHP autoloading |
| 64 | 64 | * |
| 65 | - * @return bool|string The path to the class on success; otherwise false |
|
| 65 | + * @return string|false The path to the class on success; otherwise false |
|
| 66 | 66 | * otherwise. |
| 67 | 67 | */ |
| 68 | 68 | protected function includeClass($class) |
@@ -107,7 +107,7 @@ discard block |
||
| 107 | 107 | * @param string $package_name The name of the package in Vendor\Package format |
| 108 | 108 | * @param string $class_name The full, relative name of the class with the vendor and package names stripped |
| 109 | 109 | * |
| 110 | - * @return bool|string The path to the class on success; otherwise false |
|
| 110 | + * @return string|false The path to the class on success; otherwise false |
|
| 111 | 111 | */ |
| 112 | 112 | protected function loadPackage($package_name, $class_name) |
| 113 | 113 | { |
@@ -42,7 +42,7 @@ discard block |
||
| 42 | 42 | */ |
| 43 | 43 | public function registerPackages($package, $path) |
| 44 | 44 | { |
| 45 | - $this->logger->info("Preparing {$package} package for registration."); |
|
| 45 | + $this->logger->info("preparing {$package} package for registration."); |
|
| 46 | 46 | $this->logger->debug("Parameters: package = {$package}, path = {$path}"); |
| 47 | 47 | |
| 48 | 48 | $package = trim($package, "\\"); |
@@ -125,7 +125,7 @@ discard block |
||
| 125 | 125 | $this->logger->debug("Set up class path as {$class_path}"); |
| 126 | 126 | |
| 127 | 127 | if (file_exists($class_path)) { |
| 128 | - $this->logger->debug("File {$class_path} exists"); |
|
| 128 | + $this->logger->debug("file {$class_path} exists"); |
|
| 129 | 129 | |
| 130 | 130 | $this->logger->debug("Including " . $class_path); |
| 131 | 131 | /** @noinspection PhpIncludeInspection */ |
@@ -135,7 +135,7 @@ discard block |
||
| 135 | 135 | |
| 136 | 136 | $this->logger->info("Completed loading {$path_loaded}"); |
| 137 | 137 | } else { |
| 138 | - $this->logger->debug("File {$class_path} does not exist given {$package_name} package"); |
|
| 138 | + $this->logger->debug("file {$class_path} does not exist given {$package_name} package"); |
|
| 139 | 139 | |
| 140 | 140 | $path_loaded = false; |
| 141 | 141 | } |
@@ -4,18 +4,18 @@ |
||
| 4 | 4 | */ |
| 5 | 5 | |
| 6 | 6 | require "config/app_constants.php"; |
| 7 | -require DILMUN_VENDOR_DIR . "autoload.php"; |
|
| 8 | -require DILMUN_SOURCE_DIR . "Nabu/Autoloader.php"; |
|
| 7 | +require DILMUN_VENDOR_DIR."autoload.php"; |
|
| 8 | +require DILMUN_SOURCE_DIR."Nabu/Autoloader.php"; |
|
| 9 | 9 | |
| 10 | 10 | /** |
| 11 | 11 | * @todo Pull this out somehow so that logging on bootstrap is more abstract |
| 12 | 12 | */ |
| 13 | 13 | //Pre-load logger classes for autoloader logging! |
| 14 | -require DILMUN_SOURCE_DIR . "Nabu/Logger.php"; |
|
| 15 | -require DILMUN_SOURCE_DIR . "Nabu/StaticLogger.php"; |
|
| 16 | -require DILMUN_SOURCE_DIR . "Nabu/LoggerHandler/HandlerInterface.php"; |
|
| 17 | -require DILMUN_SOURCE_DIR . "Nabu/LoggerHandler/File.php"; |
|
| 18 | -require DILMUN_SOURCE_DIR . "Nabu/LoggerHandler/System.php"; |
|
| 14 | +require DILMUN_SOURCE_DIR."Nabu/Logger.php"; |
|
| 15 | +require DILMUN_SOURCE_DIR."Nabu/StaticLogger.php"; |
|
| 16 | +require DILMUN_SOURCE_DIR."Nabu/LoggerHandler/HandlerInterface.php"; |
|
| 17 | +require DILMUN_SOURCE_DIR."Nabu/LoggerHandler/File.php"; |
|
| 18 | +require DILMUN_SOURCE_DIR."Nabu/LoggerHandler/System.php"; |
|
| 19 | 19 | |
| 20 | 20 | use Subreality\Dilmun\Nabu\Autoloader; |
| 21 | 21 | |