Skip to content

Commit

Permalink
Autoload update
Browse files Browse the repository at this point in the history
  • Loading branch information
olvlvl committed Feb 25, 2023
1 parent 98ffec7 commit b85cedf
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion lib/Module/Autoconfig/ModuleAutoconfig.php
Expand Up @@ -16,5 +16,5 @@
*/
interface ModuleAutoconfig
{
const MODULES = 'modules';
public const MODULES = 'modules';
}
4 changes: 2 additions & 2 deletions lib/Module/Autoconfig/ModuleExtension.php
Expand Up @@ -71,7 +71,7 @@ public function synthesize(array &$autoconfig): void
foreach ($modules_directories as $pathname) {
if (is_dir("$pathname/config")) {
/** @phpstan-ignore-next-line */
$autoconfig[Autoconfig::CONFIG_PATH][] = [
$autoconfig[Autoconfig::ARG_CONFIG_PATHS][] = [

$this->find_shortest_path_code("$pathname/config"),
Autoconfig::CONFIG_WEIGHT_MODULE
Expand All @@ -81,7 +81,7 @@ public function synthesize(array &$autoconfig): void

if (is_dir("$pathname/locale")) {
/** @phpstan-ignore-next-line */
$autoconfig[Autoconfig::LOCALE_PATH][] = $this
$autoconfig[Autoconfig::ARG_LOCALE_PATHS][] = $this
->find_shortest_path_code("$pathname/locale");
}
}
Expand Down

0 comments on commit b85cedf

Please sign in to comment.