@@ -126,7 +126,7 @@ |
||
| 126 | 126 | return '\\Micro\\Validator\\'.self::$validators[$name]; |
| 127 | 127 | } elseif (class_exists($name) && is_subclass_of($name, '\Micro\Validator\IValidator')) { |
| 128 | 128 | return $name; |
| 129 | - } elseif (file_exists((new KernelInjector)->build()->getAppDir() . '/validator/' . $name . '.php')) { |
|
| 129 | + } elseif (file_exists((new KernelInjector)->build()->getAppDir().'/validator/'.$name.'.php')) { |
|
| 130 | 130 | return '\\App\\Validator\\'.$name; |
| 131 | 131 | } |
| 132 | 132 | |
@@ -112,7 +112,7 @@ discard block |
||
| 112 | 112 | protected function prepareExtensions(&$uriBlocks) |
| 113 | 113 | { |
| 114 | 114 | foreach ($uriBlocks as $i => $block) { |
| 115 | - if (file_exists((new KernelInjector)->build()->getAppDir() . $this->extensions . '/extensions/' . $block)) { |
|
| 115 | + if (file_exists((new KernelInjector)->build()->getAppDir().$this->extensions.'/extensions/'.$block)) { |
|
| 116 | 116 | $this->extensions .= '/Extensions/'.ucfirst($block); |
| 117 | 117 | |
| 118 | 118 | unset($uriBlocks[$i]); |
@@ -138,7 +138,7 @@ discard block |
||
| 138 | 138 | */ |
| 139 | 139 | protected function prepareModules(&$uriBlocks) |
| 140 | 140 | { |
| 141 | - $path = (new KernelInjector)->build()->getAppDir() . ($this->extensions ?: ''); |
|
| 141 | + $path = (new KernelInjector)->build()->getAppDir().($this->extensions ?: ''); |
|
| 142 | 142 | |
| 143 | 143 | foreach ($uriBlocks as $i => $block) { |
| 144 | 144 | if ($block && file_exists($path.strtolower($this->modules).'/modules/'.$block)) { |
@@ -165,7 +165,7 @@ discard block |
||
| 165 | 165 | */ |
| 166 | 166 | protected function prepareController(&$uriBlocks) |
| 167 | 167 | { |
| 168 | - $path = (new KernelInjector)->build()->getAppDir() . ($this->extensions ?: '') . strtolower($this->modules ?: ''); |
|
| 168 | + $path = (new KernelInjector)->build()->getAppDir().($this->extensions ?: '').strtolower($this->modules ?: ''); |
|
| 169 | 169 | $str = array_shift($uriBlocks); |
| 170 | 170 | |
| 171 | 171 | if (file_exists(str_replace('\\', '/', $path.'/controllers/'.ucfirst($str).'Controller.php'))) { |